* Support special characters in config.nix.extraOptions.
svn path=/nixos/trunk/; revision=14278
This commit is contained in:
parent
69ef41ea14
commit
51078ac5b7
@ -140,7 +140,7 @@ import ../helpers/make-etc.nix {
|
||||
# coreutils and Perl) aren't visible. Sigh.
|
||||
nixDeps = pkgs.writeReferencesToFile config.environment.nix;
|
||||
in
|
||||
pkgs.runCommand "nix.conf" {} ''
|
||||
pkgs.runCommand "nix.conf" {extraOptions = config.nix.extraOptions; } ''
|
||||
extraPaths=$(for i in $(cat ${binshDeps} ${nixDeps}); do if test -d $i; then echo $i; fi; done)
|
||||
cat > $out <<END
|
||||
# WARNING: this file is generated.
|
||||
@ -148,7 +148,7 @@ import ../helpers/make-etc.nix {
|
||||
build-max-jobs = ${toString (config.nix.maxJobs)}
|
||||
build-use-chroot = ${if config.nix.useChroot then "true" else "false"}
|
||||
build-chroot-dirs = /dev /dev/pts /proc /bin $(echo $extraPaths)
|
||||
${config.nix.extraOptions}
|
||||
$extraOptions
|
||||
END
|
||||
'';
|
||||
target = "nix.conf"; # will be symlinked from /nix/etc/nix/nix.conf in activate-configuration.sh.
|
||||
|
Loading…
Reference in New Issue
Block a user