News for hackers. Stuff that matters.
Re:What's your go to Nix/NixOS pitch? by conception on Saturday August 12, 2023 @03:58PM (#37103701)
What are the two commands for further reading? Not familiar with Nix.
Re:What's your go to Nix/NixOS pitch? by Aerbil313 on Saturday August 12, 2023 @04:03PM (#37103740)
(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.
Re:What's your go to Nix/NixOS pitch? by viraptor on Saturday August 12, 2023 @04:14PM (#37103836)
Or if you're sharing configuration, it's most likely a "git pull" rather than "cp".
Re:What's your go to Nix/NixOS pitch? by cfcosta on Saturday August 12, 2023 @04:27PM (#37103943)
Yes, to be specific it's a git clone and a command to apply the flake.
Re:What's your go to Nix/NixOS pitch? by yjftsjthsd-h on Saturday August 12, 2023 @06:26PM (#37104773)
If you're using a flake, can't you apply itfrom git in a single command?
Re:What's your go to Nix/NixOS pitch? by cfcosta on Saturday August 12, 2023 @07:12PM (#37105059)
Actually, you can! I always want to clone it either way, so I just do it.