diff --git a/configuration/auto-upgrade.nix b/configuration/auto-upgrade.nix index 17e8d89..fc5668f 100644 --- a/configuration/auto-upgrade.nix +++ b/configuration/auto-upgrade.nix @@ -12,5 +12,12 @@ mkIf flags.auto-upgrade { # Automatic update & automatic clean system.autoUpgrade.enable = true; - nix.gc.automatic = true; + nix = { + autoOptimiseStore = true; + gc = { + automatic = true; + dates = "daily"; + options = "--delete-older-than 7d"; + }; + }; }