diff --git a/servers/common/main.nix b/servers/common/main.nix index 22be3fe..36bc6b9 100644 --- a/servers/common/main.nix +++ b/servers/common/main.nix @@ -11,6 +11,19 @@ ]; programs.fish.enable = true; - nix.settings.experimental-features = [ "nix-command" "flakes" ]; - nix.settings.trusted-users = [ "root" "@wheel" ]; + nix = { + settings = { + experimental-features = [ "nix-command" "flakes" ]; + trusted-users = [ "root" "@wheel" ]; + auto-optimise-store = true; + }; + optimise = { + automatic = true; + dates = [ "weekly" ]; + }; + gc = { + automatic = true; + dates = "weekly"; + }; + }; } \ No newline at end of file