From 8a8ff9513bfb222bd72793e39556a3e8f88be17e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Sun, 19 Feb 2023 19:23:55 +0200 Subject: [PATCH] nix.gc --- configuration.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configuration.nix b/configuration.nix index 16abeab..27c6c5c 100644 --- a/configuration.nix +++ b/configuration.nix @@ -365,6 +365,12 @@ in { }; }; + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 30d"; + }; + systemd.services."make-snapshot-dirs" = let vals = builtins.attrValues backup_paths; mountpoints = builtins.catAttrs "mountpoint" vals;