Y
Hacker News
new
|
ask
|
show
|
jobs
by
conception
1038 days ago
What are the two commands for further reading? Not familiar with Nix.
1 comments
Aerbil313
1038 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.
link
viraptor
1038 days ago
Or if you're sharing configuration, it's most likely a "git pull" rather than "cp".
link
cfcosta
1038 days ago
Yes, to be specific it's a git clone and a command to apply the flake.
link
yjftsjthsd-h
1038 days ago
If you're using a flake, can't you apply itfrom git in a single command?
link
cfcosta
1038 days ago
Actually, you can! I always want to clone it either way, so I just do it.
link