summary refs log tree commit diff stats
path: root/nix.nix
diff options
context:
space:
mode:
authorsils <sils@sils.li>2022-12-31 21:11:59 +0100
committersils <sils@sils.li>2022-12-31 21:11:59 +0100
commitb8517694ee0140a70132ed6676496e894d2e4edc (patch)
tree3ceafb4cde93957f8548ed918b96a16b7c3da4b3 /nix.nix
parentremoved unnecessary readme (diff)
downloadnix-config-b8517694ee0140a70132ed6676496e894d2e4edc.tar.gz
nix-config-b8517694ee0140a70132ed6676496e894d2e4edc.zip
tune nix-store
Diffstat (limited to 'nix.nix')
-rw-r--r--nix.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/nix.nix b/nix.nix
new file mode 100644
index 0000000..02fa333
--- /dev/null
+++ b/nix.nix
@@ -0,0 +1,11 @@
+{ config, lib, pkgs, ... }:
+{
+	nix = {
+		gc = {
+			automatic = true;
+			dates = "daily";
+			options = "--delete-older-than 3";
+		};
+		settings.auto-optimise-store = true;
+	};
+}