Y
Hacker News
new
|
ask
|
show
|
jobs
by
Aerbil313
1039 days ago
(Not OP) cp to copy the /etc/nixos/configuration.nix file, and nixos-rebuild to build the system defined in the file on the new machine.
1 comments
viraptor
1039 days ago
Or if you're sharing configuration, it's most likely a "git pull" rather than "cp".
link
cfcosta
1039 days ago
Yes, to be specific it's a git clone and a command to apply the flake.
link
yjftsjthsd-h
1039 days ago
If you're using a flake, can't you apply itfrom git in a single command?
link
cfcosta
1039 days ago
Actually, you can! I always want to clone it either way, so I just do it.
link