diff --git a/modules/common.nix b/hosts/common.nix similarity index 76% rename from modules/common.nix rename to hosts/common.nix index bc4be3a..b58a876 100644 --- a/modules/common.nix +++ b/hosts/common.nix @@ -2,6 +2,17 @@ { nix.settings.experimental-features = [ "nix-command" "flakes" ]; + + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 30d"; + }; + + nix.optimise = { + automatic = true; + dates = [ "03:45" ]; + }; # Set your time zone. time.timeZone = "Europe/Berlin"; diff --git a/hosts/cube.nix b/hosts/cube.nix index b0abedd..6ae5a91 100644 --- a/hosts/cube.nix +++ b/hosts/cube.nix @@ -4,7 +4,7 @@ imports = [ ./cube-hardware-configuration.nix - ../modules/common.nix + ./common.nix ]; # Bootloader.