From 295277ad00534106cdce2db952a22eb6e289e513 Mon Sep 17 00:00:00 2001 From: "Lennart J. Kurzweg (Nx2)" Date: Tue, 2 Jul 2024 19:04:48 +0200 Subject: [PATCH] gc --- configuration.nix | 1 + system-modules/gc.nix | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 system-modules/gc.nix diff --git a/configuration.nix b/configuration.nix index 99866bf..b2f0fc4 100755 --- a/configuration.nix +++ b/configuration.nix @@ -9,6 +9,7 @@ ./system-modules/sound.nix ./system-modules/fonts.nix ./system-modules/boot.nix + ./system-modules/gc.nix ./system-modules/dm.nix ./system-modules/networking.nix ./system-modules/virtualisation.nix diff --git a/system-modules/gc.nix b/system-modules/gc.nix new file mode 100644 index 0000000..2ddd4cd --- /dev/null +++ b/system-modules/gc.nix @@ -0,0 +1,11 @@ +{ ... }: +{ + nix = { + gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 30d"; + }; + settings.auto-optimise-store = true; + }; +}