about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-10-16 10:57:25 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-10-16 10:57:25 +0200
commite0db0aaa4d4a9169b5e1f4d1d6e23d6dffc5d0ab (patch)
tree7ffa2ea4ff7d05f6390311bd4a7249c87b3fa9b3
parent16cd8b039b4ce9d84837861daa1f275e6814d5ed (diff)
downloadnixlib-e0db0aaa4d4a9169b5e1f4d1d6e23d6dffc5d0ab.tar
nixlib-e0db0aaa4d4a9169b5e1f4d1d6e23d6dffc5d0ab.tar.gz
nixlib-e0db0aaa4d4a9169b5e1f4d1d6e23d6dffc5d0ab.tar.bz2
nixlib-e0db0aaa4d4a9169b5e1f4d1d6e23d6dffc5d0ab.tar.lz
nixlib-e0db0aaa4d4a9169b5e1f4d1d6e23d6dffc5d0ab.tar.xz
nixlib-e0db0aaa4d4a9169b5e1f4d1d6e23d6dffc5d0ab.tar.zst
nixlib-e0db0aaa4d4a9169b5e1f4d1d6e23d6dffc5d0ab.zip
Rename /etc/nix.machines to /etc/nix/machines
Since we have a /etc/nix directory, we should use it and not pollute
/etc.
-rw-r--r--nixos/modules/services/misc/nix-daemon.nix16
1 files changed, 8 insertions, 8 deletions
diff --git a/nixos/modules/services/misc/nix-daemon.nix b/nixos/modules/services/misc/nix-daemon.nix
index f85a46fa60d7..ff0bdf65ced6 100644
--- a/nixos/modules/services/misc/nix-daemon.nix
+++ b/nixos/modules/services/misc/nix-daemon.nix
@@ -249,7 +249,7 @@ in
 
     # List of machines for distributed Nix builds in the format
     # expected by build-remote.pl.
-    environment.etc."nix.machines" =
+    environment.etc."nix/machines" =
       { enable = cfg.buildMachines != [];
         text =
           concatMapStrings (machine:
@@ -294,17 +294,17 @@ in
     nix.envVars =
       { NIX_CONF_DIR = "/etc/nix";
 
-        # Enable the copy-from-other-stores substituter, which allows builds
-        # to be sped up by copying build results from remote Nix stores.  To
-        # do this, mount the remote file system on a subdirectory of
-        # /var/run/nix/remote-stores.
-        NIX_OTHER_STORES = "/var/run/nix/remote-stores/*/nix";
+        # Enable the copy-from-other-stores substituter, which allows
+        # builds to be sped up by copying build results from remote
+        # Nix stores.  To do this, mount the remote file system on a
+        # subdirectory of /run/nix/remote-stores.
+        NIX_OTHER_STORES = "/run/nix/remote-stores/*/nix";
       }
 
       // optionalAttrs cfg.distributedBuilds {
         NIX_BUILD_HOOK = "${config.environment.nix}/libexec/nix/build-remote.pl";
-        NIX_REMOTE_SYSTEMS = "/etc/nix.machines";
-        NIX_CURRENT_LOAD = "/var/run/nix/current-load";
+        NIX_REMOTE_SYSTEMS = "/etc/nix/machines";
+        NIX_CURRENT_LOAD = "/run/nix/current-load";
       }
 
       # !!! These should not be defined here, but in some general proxy configuration module!