From 5646ad58a7d8e6402f49c87d1d5e008ab72f0b5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Fri, 12 Jan 2024 16:07:09 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20(hosts/system)=20change=20?= =?UTF-8?q?`nix.optimise`=20and=20`nix.gc`=20settings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hosts/hydrogen/system/nix/default.nix | 8 ++++++-- hosts/neodymium/system/nix/default.nix | 6 +++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/hosts/hydrogen/system/nix/default.nix b/hosts/hydrogen/system/nix/default.nix index 35914c0..c6756e5 100644 --- a/hosts/hydrogen/system/nix/default.nix +++ b/hosts/hydrogen/system/nix/default.nix @@ -6,12 +6,16 @@ }: { # optimizations nix.settings.auto-optimise-store = true; + nix.optimise = { + automatic = true; + dates = "daily"; + }; # garbage collection nix.gc = { automatic = true; - dates = "weekly"; - options = "--delete-older-than 30d"; + dates = "daily"; + options = "--delete-older-than 14d"; }; # experimental features diff --git a/hosts/neodymium/system/nix/default.nix b/hosts/neodymium/system/nix/default.nix index 266b91e..244ce6b 100644 --- a/hosts/neodymium/system/nix/default.nix +++ b/hosts/neodymium/system/nix/default.nix @@ -16,11 +16,15 @@ # optimizations nix.settings.auto-optimise-store = true; + nix.optimise = { + automatic = true; + dates = "daily"; + }; # garbage collection nix.gc = { automatic = true; - dates = "weekly"; + dates = "daily"; options = "--delete-older-than 30d"; };