From 0fd53b62f1a835debde5872ab2e0fdeddf9957d8 Mon Sep 17 00:00:00 2001 From: Markus Heurung Date: Tue, 13 Aug 2024 12:49:24 +0200 Subject: [PATCH] start modularization of setup --- {modules => hosts}/common.nix | 11 +++++++++++ hosts/cube.nix | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) rename {modules => hosts}/common.nix (76%) 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.