Changes
3 changed files (+7/-5)
-
-
@@ -10,12 +10,12 @@ Prefer the new `nix` CLI when possible instead of the old `nix-*` commands. It's| --- | --- | | Run program | `nix run nixpkgs#hello` (needs `--` if passing args) | | Run program from another Nixpkgs repo | `nix run github:Toby222/nixpkgs#space-station-14-launcher` | | Clean Nix store | `sudo nix-collect-garbage` and `nix store optimise` | | Clean Nix store `run0 nix-collect-garbage` and `nix store optimise` | | Get size of Nix store | `sqlite3 'file:/nix/var/nix/db/db.sqlite?readonly=true&immutable=true' 'SELECT SUM(narSize) FROM ValidPaths'` | | Get largest packages | `sqlite3 'file:/nix/var/nix/db/db.sqlite?readonly=true&immutable=true' 'SELECT * FROM ValidPaths ORDER BY narSize DESC LIMIT 50'` | | Check if anything depends on path | `nix-store --query --referrers /nix/store/blah` | | List system generations | `nixos-rebuild list-generations` | | Switch to generation | `sudo nix-env --switch-generation 12345 -p /nix/var/nix/profiles/system` and `sudo /nix/var/nix/profiles/system/bin/switch-to-configuration switch` | | Switch to generation | `run0 nix-env --switch-generation 12345 -p /nix/var/nix/profiles/system` and `run0 /nix/var/nix/profiles/system/bin/switch-to-configuration switch` | | Run Nix file | `nix eval -f main.nix` | | Build VM from config | `nixos-rebuild build-vm` | | Deploy using signing key | `LOCAL_KEY=key deploy -s .` |
-
-
-
@@ -96,6 +96,8 @@snapshot_preserve_min = "latest"; }; security.sudo-rs.enable = true; # This option defines the first version of NixOS you have installed on this particular machine, # and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions. #
-
-
-
@@ -61,11 +61,11 @@}, "nixpkgs": { "locked": { "lastModified": 1755186698, "narHash": "sha256-wNO3+Ks2jZJ4nTHMuks+cxAiVBGNuEBXsT29Bz6HASo=", "lastModified": 1755615617, "narHash": "sha256-HMwfAJBdrr8wXAkbGhtcby1zGFvs+StOp19xNsbqdOg=", "owner": "NixOS", "repo": "nixpkgs", "rev": "fbcf476f790d8a217c3eab4e12033dc4a0f6d23c", "rev": "20075955deac2583bb12f07151c2df830ef346b4", "type": "github" }, "original": {
-