aboutsummaryrefslogtreecommitdiff
path: root/hosts/nixpad/configuration.nix
diff options
context:
space:
mode:
authorFrankie B <git@diskfloppy.me>2023-08-26 21:20:21 +0100
committerFrankie B <git@diskfloppy.me>2023-08-26 21:20:21 +0100
commit3d8fd14805cb00a94f93b220740a5c994292dfdb (patch)
tree8cca2beab020be20b8b020bb2b8905e83f4166e1 /hosts/nixpad/configuration.nix
parentc5afc1a07213059e7090da1a089d8c04385ffefc (diff)
Enable auto gc
Diffstat (limited to 'hosts/nixpad/configuration.nix')
-rw-r--r--hosts/nixpad/configuration.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/hosts/nixpad/configuration.nix b/hosts/nixpad/configuration.nix
index 5876618..3f7ea27 100644
--- a/hosts/nixpad/configuration.nix
+++ b/hosts/nixpad/configuration.nix
@@ -65,6 +65,13 @@
# Enable experimental features
nix.settings.extra-experimental-features = ["flakes" "nix-command"];
+ # Enable automatic gc
+ nix.gc = {
+ automatic = true;
+ dates = "weekly";
+ options = "--delete-older-than 30d";
+ };
+
# Enable CUPS to print documents.
services.printing.enable = true;