summary refs log tree commit diff stats
path: root/common/nix/default.nix
diff options
context:
space:
mode:
authorsils <sils@sils.li>2023-04-20 18:25:45 +0200
committersils <sils@sils.li>2023-04-20 18:31:19 +0200
commit8b5e6cfeed2b5c7088cdf8a98bacee72ad6cabd4 (patch)
treebd77dade79e8c7e6f6f3a136d53fd5518d9ffcb9 /common/nix/default.nix
parentFeat(packages.nix): Add pinentry (diff)
downloadnix-config-8b5e6cfeed2b5c7088cdf8a98bacee72ad6cabd4.tar.gz
nix-config-8b5e6cfeed2b5c7088cdf8a98bacee72ad6cabd4.zip
Feat(structure): Restructured repository
                 This is mainly convenience and my personal
                 preference.
Diffstat (limited to 'common/nix/default.nix')
-rw-r--r--common/nix/default.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/common/nix/default.nix b/common/nix/default.nix
new file mode 100644
index 0000000..30f5b38
--- /dev/null
+++ b/common/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"];
+    };
+  };
+}