about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--nix-conf/home/includes/common.nix7
-rw-r--r--nix-conf/home/includes/darwin.nix6
2 files changed, 13 insertions, 0 deletions
diff --git a/nix-conf/home/includes/common.nix b/nix-conf/home/includes/common.nix
index c9bd270..09bbc48 100644
--- a/nix-conf/home/includes/common.nix
+++ b/nix-conf/home/includes/common.nix
@@ -63,6 +63,13 @@ in
     w3m
   ];
 
+  nix = {
+    package = pkgs.nix;
+    settings = {
+      extra-experimental-features = [ "nix-command" "flakes" ];
+    };
+  };
+
   programs.gpg.enable = true;
   programs.nix-index = {
     enable = true;
diff --git a/nix-conf/home/includes/darwin.nix b/nix-conf/home/includes/darwin.nix
index aafe803..9f04927 100644
--- a/nix-conf/home/includes/darwin.nix
+++ b/nix-conf/home/includes/darwin.nix
@@ -31,6 +31,12 @@
     wget
   ];
 
+  nix.settings = {
+    sandbox = true;
+    keep-outputs = true;
+    keep-derivations = true;
+  };
+
   programs.java = {
     enable = true;
     #package = (pkgs.jdk8.overrideAttrs (_: { postPatch = "ln -nsf ../zulu-8.jdk/Contents/Home/man man"; }));