feat: add NixOS auto-GC and -store optimisation

This commit is contained in:
Swarsel 2024-07-11 11:08:22 +02:00
parent 88f64a3139
commit af3224a1d5
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
2 changed files with 39 additions and 0 deletions

View file

@ -32,6 +32,18 @@ stylix.targets.grub.enable = false; # the styling makes grub more ugly
security.polkit.enable = true;
nix.gc = {
automatic = true;
randomizedDelaySec = "14m";
dates = "weekly";
options = "--delete-older-than 10d";
};
nix.optimise = {
automatic = true;
dates = [ "weekly" ];
};
# systemd
systemd.extraConfig = ''
DefaultTimeoutStartSec=60s