Changes
1 changed files (+1/-1)
-
-
@@ -16,7 +16,7 @@ Prefer the new `nix` CLI when possible instead of the old `nix-*` commands. It's| Clean Nix store | `run0 nix-collect-garbage && nix store optimise` | | Check what depends on path | `nix-store --query --referrers /nix/store/blah` | | List system generations | `nixos-rebuild list-generations` | | Switch to generation | `run0 fish -c "cd /nix/var/nix/profiles && nix-env --switch-generation 314 -p /nix/var/nix/profiles/system && system/bin/switch-to-configuration switch"` | | Switch to generation | `run0 fish -c "nix-env --switch-generation 1234 -p /nix/var/nix/profiles/system && /nix/var/nix/profiles/system/bin/switch-to-configuration switch"` | | Get changes between system generations | `nix profile diff-closures --profile /nix/var/nix/profiles/system` | | 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) |
-