diff options
| author | Dylan <boss@tehbox.org> | 2026-10-17 14:59:30 +1300 |
|---|---|---|
| committer | Dylan <boss@tehbox.org> | 2026-10-17 14:59:30 +1300 |
| commit | f29c5c4337febe2dc015d61f5c36b4c129e7f565 (patch) | |
| tree | 3d3ca9c5a7caf037adba35e955bdfd234f742533 /modules | |
| parent | 5af14f29f3ac99374d332f333a0a877415c09848 (diff) | |
| download | nixos-configuration-f29c5c4337febe2dc015d61f5c36b4c129e7f565.tar.gz nixos-configuration-f29c5c4337febe2dc015d61f5c36b4c129e7f565.zip | |
feat: Lots of changes
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/nix.nix | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/modules/nix.nix b/modules/nix.nix index de1281a..64fc4a3 100644 --- a/modules/nix.nix +++ b/modules/nix.nix @@ -24,12 +24,18 @@ # "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" # ]; }; - gc = { - automatic = true; + optimise.automatic = true; + }; + + # nh's cleaner replaces nix.gc (the nh module asserts they aren't both on) + programs.nh = { + enable = true; + clean = { + enable = true; dates = "weekly"; - options = "--delete-older-than +7"; + # --no-direnv keeps nix-direnv's gcroots so dev shells survive + extraArgs = "--keep-since 7d --keep 5 --no-direnv"; }; - optimise.automatic = true; }; }; } |
