aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatasha Moongrave <natasha@256phi.eu>2026-05-25 09:28:55 +0200
committerNatasha Moongrave <natasha@256phi.eu>2026-05-25 09:28:55 +0200
commitbc443eed6610dfdd0fb239c638a1a9d8704178db (patch)
treeebd630d8ace529c3a3e15f77ad995d92cbfa5d5e
parentc4e91061e16475c390dc8adf383a7c035adf1edf (diff)
Added automatic gc and optimise config to nix
-rw-r--r--system/nix.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/system/nix.nix b/system/nix.nix
index ef92dc1..74dea4f 100644
--- a/system/nix.nix
+++ b/system/nix.nix
@@ -15,6 +15,15 @@
experimental-features = ["nix-command" "flakes"];
};
+ gc = {
+ automatic = true;
+ dates = "weekly";
+ options = "--delete-older-than 7d";
+ };
+ optimise = {
+ automatic = true;
+ dates = ["weekly"];
+ };
};
# Fix nixpkgs.overlays for Lix compatibility