about summary refs log tree commit diff stats
path: root/services/nix.nix
diff options
context:
space:
mode:
authorene <ene@sils.li>2023-02-01 20:22:29 +0100
committerene <ene@sils.li>2023-02-01 20:28:24 +0100
commita806c6776ea19ec068b7a60fde211310fd41d156 (patch)
treeb34083424e759459473b13b7c2f9f75cf9e8a80e /services/nix.nix
downloadnixos-config-a806c6776ea19ec068b7a60fde211310fd41d156.tar.gz
nixos-config-a806c6776ea19ec068b7a60fde211310fd41d156.zip
Initial commit
Diffstat (limited to 'services/nix.nix')
-rw-r--r--services/nix.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/services/nix.nix b/services/nix.nix
new file mode 100644
index 00000000..b94cfc95
--- /dev/null
+++ b/services/nix.nix
@@ -0,0 +1,18 @@
+{
+  config,
+  lib,
+  pkgs,
+  ...
+}: {
+  nix = {
+    gc = {
+      automatic = true;
+      dates = "daily";
+      options = "--delete-older-than 3";
+    };
+    settings = {
+      auto-optimise-store = true;
+      experimental-features = ["nix-command" "flakes"];
+    };
+  };
+}