From 8bfbe7ef84df37c933fb26a15bb3d3f8212f17cf Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 26 Aug 2013 12:11:17 +0200 Subject: [PATCH] Don't try to guess the location of the NixOS config file The NixOS config need not be $NIXOS_CONFIG, it can also be set through -I nixos-config=... or not exist in a separate file at all (e.g. in a NixOps deployment). Issue #212. --- modules/services/misc/nix-daemon.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/services/misc/nix-daemon.nix b/modules/services/misc/nix-daemon.nix index e77a9dc2e4b4..58fb3322c201 100644 --- a/modules/services/misc/nix-daemon.nix +++ b/modules/services/misc/nix-daemon.nix @@ -34,8 +34,9 @@ let pkgs.runCommand "nix.conf" {extraOptions = cfg.extraOptions; } '' extraPaths=$(for i in $(cat ${binshDeps}); do if test -d $i; then echo $i; fi; done) cat > $out <