summary refs log tree commit diff stats
path: root/sys/nix/default.nix
diff options
context:
space:
mode:
authorsils <sils@sils.li>2023-05-04 18:17:38 +0200
committersils <sils@sils.li>2023-05-04 18:17:38 +0200
commit4eaf76cf1e0af9ec7a630320bb7d4956041dd03e (patch)
tree4073ad033ef5f0939e76bb82a75847b34ca4bba9 /sys/nix/default.nix
parentChore(flake): Update (diff)
downloadnix-config-4eaf76cf1e0af9ec7a630320bb7d4956041dd03e.tar.gz
nix-config-4eaf76cf1e0af9ec7a630320bb7d4956041dd03e.zip
Structure(treewide): Use new structure with home-manager
                     home-manager enables great possibilities and is
                     part of simplifying the structure of my config.
Diffstat (limited to 'sys/nix/default.nix')
-rw-r--r--sys/nix/default.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/sys/nix/default.nix b/sys/nix/default.nix
new file mode 100644
index 0000000..30f5b38
--- /dev/null
+++ b/sys/nix/default.nix
@@ -0,0 +1,13 @@
+{...}: {
+  nix = {
+    gc = {
+      automatic = true;
+      dates = "daily";
+      options = "--delete-older-than 3";
+    };
+    settings = {
+      auto-optimise-store = true;
+      experimental-features = ["nix-command" "flakes"];
+    };
+  };
+}