From e0db0aaa4d4a9169b5e1f4d1d6e23d6dffc5d0ab Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 16 Oct 2013 10:57:25 +0200 Subject: Rename /etc/nix.machines to /etc/nix/machines Since we have a /etc/nix directory, we should use it and not pollute /etc. --- nixos/modules/services/misc/nix-daemon.nix | 16 ++++++++-------- 1 file 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! -- cgit 1.4.1