From 6d61d052617522a9a69a0d13730ded3896eee485 Mon Sep 17 00:00:00 2001 From: min Date: Sun, 13 Oct 2024 17:28:02 -0400 Subject: [PATCH] Weekly nix gc --- nixos/hosts/silver/configuration.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nixos/hosts/silver/configuration.nix b/nixos/hosts/silver/configuration.nix index 2f287a1..1833486 100644 --- a/nixos/hosts/silver/configuration.nix +++ b/nixos/hosts/silver/configuration.nix @@ -95,5 +95,12 @@ in { hostKeys = ["/persist/etc/secrets/initrd/ssh_host_ed25519_key"]; }; + # Periodic nix gc + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 30d"; + }; + system.stateVersion = "24.05"; }