summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorseth <[email protected]>2023-02-20 15:12:21 -0500
committerseth <[email protected]>2023-02-20 15:12:21 -0500
commit5ec16f1a062317605bd064f6aa7f943795a9db5c (patch)
tree35397dee941a30189bb2b687bd4b447d08e185f3 /hosts
parentc29ebfedcad3ef36557608926aeea68d3106157c (diff)
automatic nix gc
Diffstat (limited to 'hosts')
-rw-r--r--hosts/common/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/hosts/common/default.nix b/hosts/common/default.nix
index df576df..3ec95d5 100644
--- a/hosts/common/default.nix
+++ b/hosts/common/default.nix
@@ -10,5 +10,10 @@ _: {
./users.nix
];
+ nix.gc = {
+ automatic = true;
+ dates = "weekly";
+ options = "--delete-older-than 7d";
+ };
# config.services.kmscon.enable = true;
}