aboutsummaryrefslogtreecommitdiff
path: root/profiles/nix/gc.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2025-08-12 10:00:24 -0700
committerFranck Cuny <franck@fcuny.net>2025-08-12 10:00:24 -0700
commiteb62ca846ac122f9aaacb10cdaec67249fbf89a7 (patch)
treed447477a3965e49814b68c9d4bf8c525c366f9ca /profiles/nix/gc.nix
parentmove disks configuration to the host' directory (diff)
downloadinfra-eb62ca846ac122f9aaacb10cdaec67249fbf89a7.tar.gz
create profiles for networkd and nix's GC
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;
+}