aboutsummaryrefslogtreecommitdiff
path: root/profiles/nix/gc.nix
diff options
context:
space:
mode:
Diffstat (limited to 'profiles/nix/gc.nix')
-rw-r--r--profiles/nix/gc.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/profiles/nix/gc.nix b/profiles/nix/gc.nix
new file mode 100644
index 0000000..c39476c
--- /dev/null
+++ b/profiles/nix/gc.nix
@@ -0,0 +1,8 @@
+{ ... }:
+{
+ nix.gc = {
+ automatic = true;
+ options = "--delete-older-than 14d";
+ };
+ nix.optimise.automatic = true;
+}