Changes
1 changed files (+1/-1)
-
-
@@ -21,7 +21,7 @@ Prefer the new `nix` CLI when possible instead of the old `nix-*` commands. It's| Build and deploy to current machine | `nixos-rebuild switch --sudo` | | Build on remote machine and deploy to current machine | `run0 env SSH_AUTH_SOCK=$SSH_AUTH_SOCK nixos-rebuild switch --build-host sipb@boss-baby --use-substitutes` (needs root to add untrusted paths to the Nix store) | | Build on current machine and deploy to remote machine | `NIX_SSHOPTS="-i ~/.ssh/nixos-rebuild" nixos-rebuild switch --flake .#Unnamed-Server --target-host root@unnamed.website` | | Build VM from config | `nixos-rebuild build-vm && result/bin/run-* -m 4G -smp 8 -device virtio-vga-gl -display sdl,gl=on` (may need to change the QEMU version in the run script if the config uses a different nixpkgs) | | Build VM from config | `nixos-rebuild build-vm && result/bin/run-* -m 4G -smp 8 -device virtio-vga-gl -display sdl,gl=on` (may need to change all occurrences of the QEMU version in the run script if the config uses a different nixpkgs) | | Install specific version of package | https://lazamar.co.uk/nix-versions/ | | Run Nix file | `nix eval -f main.nix` | | Inspect system config in REPL | `nix repl .#nixosConfigurations.$hostname` |
-