1
0
Fork 0

Corrected command for re-building NixOS

This commit is contained in:
Jan Grosser 2024-05-12 00:32:44 +02:00
parent c85f1d7a56
commit 576e5ab958

View file

@ -24,5 +24,5 @@ git clone https://git.plueschbit.de/jan/nixos-conf ~/nixos
b) `cp /etc/nixos/*.nix $HOSTNAME/.` b) `cp /etc/nixos/*.nix $HOSTNAME/.`
c) Edit `~/nixos/flake.nix` and add section for new host c) Edit `~/nixos/flake.nix` and add section for new host
d) Stage new config files: `git add flake.nix hosts/$HOSTNAME/*`. Otherwise, nixos-rebuild will refuse to work with the files. d) Stage new config files: `git add flake.nix hosts/$HOSTNAME/*`. Otherwise, nixos-rebuild will refuse to work with the files.
7. Apply config: `sudo nixos-rebuild ~/nixos/$HOSTNAME` 8. Apply config: `sudo nixos-rebuild switch --flake ~/nixos/#<host>`