-
-
Notifications
You must be signed in to change notification settings - Fork 1
Manual Updates
Sometimes, you may need to manually download a newer version of the config or simply want to test a config you already have on your system. This is how to do so.
nh os boot github:justinhschaaf/nixos-configNote
nh complains if you run it with sudo, it'll automatically ask you to elevate your credentials once it's done building the system and is ready to apply it.
sudo nixos-rebuild boot --flake github:justinhschaaf/nixos-configOften times when I'm working on the system config, I'll need to copy the system's config directly from my development directory. This is the command I use to remove the existing config (located at /etc/nixos/) and copy it from my dev directory (~/the_shit/Programming/nixos-config/).
sudo rm -rf /etc/nixos/* && sudo cp -r ~/the_shit/Programming/nixos-config/* /etc/nixos/Once this is done, rebuild the system.
nh os boot "path:/etc/nixos"Note
nh complains if you run it with sudo, it'll automatically ask you to elevate your credentials once it's done building the system and is ready to apply it.
sudo nixos-rebuild boot --flake path:/etc/nixos