Skip to content

Commit

Permalink
treewide: Use correct output of config.nix.package in non-string cont…
Browse files Browse the repository at this point in the history
…exts
  • Loading branch information
dezgeg authored and vcunat committed Apr 25, 2016
1 parent 60f5659 commit 1d4b21e
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion nixos/modules/installer/tools/auto-upgrade.nix
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ let cfg = config.system.autoUpgrade; in
HOME = "/root";
};

path = [ pkgs.gnutar pkgs.xz.bin config.nix.package ];
path = [ pkgs.gnutar pkgs.xz.bin config.nix.package.out ];

script = ''
${config.system.build.nixos-rebuild}/bin/nixos-rebuild switch ${toString cfg.flags}
Expand Down
2 changes: 1 addition & 1 deletion nixos/modules/installer/tools/nixos-rebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ remotePATH=
if [ -n "$buildNix" ]; then
echo "building Nix..." >&2
nixDrv=
if ! nixDrv="$(nix-instantiate '<nixpkgs/nixos>' --add-root $tmpDir/nix.drv --indirect -A config.nix.package "${extraBuildFlags[@]}")"; then
if ! nixDrv="$(nix-instantiate '<nixpkgs/nixos>' --add-root $tmpDir/nix.drv --indirect -A config.nix.package.out "${extraBuildFlags[@]}")"; then
if ! nixDrv="$(nix-instantiate '<nixpkgs/nixos>' --add-root $tmpDir/nix.drv --indirect -A nixFallback "${extraBuildFlags[@]}")"; then
if ! nixDrv="$(nix-instantiate '<nixpkgs>' --add-root $tmpDir/nix.drv --indirect -A nix "${extraBuildFlags[@]}")"; then
nixStorePath="$(prebuiltNix "$(uname -m)")"
Expand Down
6 changes: 3 additions & 3 deletions nixos/modules/installer/tools/tools.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ let
src = ./nixos-install.sh;

inherit (pkgs) perl pathsFromGraph;
nix = config.nix.package;
nix = config.nix.package.out;

nixClosure = pkgs.runCommand "closure"
{ exportReferencesGraph = ["refs" config.nix.package]; }
{ exportReferencesGraph = ["refs" config.nix.package.out]; }
"cp refs $out";
};

nixos-rebuild = makeProg {
name = "nixos-rebuild";
src = ./nixos-rebuild.sh;
nix = config.nix.package;
nix = config.nix.package.out;
};

nixos-generate-config = makeProg {
Expand Down
2 changes: 1 addition & 1 deletion nixos/modules/services/misc/nix-daemon.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ let

cfg = config.nix;

nix = cfg.package;
nix = cfg.package.out;

makeNixBuildUser = nr:
{ name = "nixbld${toString nr}";
Expand Down
2 changes: 1 addition & 1 deletion nixos/modules/services/networking/nix-serve.nix
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ in
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];

path = [ config.nix.package pkgs.bzip2.bin ];
path = [ config.nix.package.out pkgs.bzip2.bin ];
environment.NIX_REMOTE = "daemon";
environment.NIX_SECRET_KEY_FILE = cfg.secretKeyFile;

Expand Down
2 changes: 1 addition & 1 deletion nixos/modules/system/boot/loader/gummiboot/gummiboot.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ let

inherit (pkgs) python gummiboot;

nix = config.nix.package;
nix = config.nix.package.out;

timeout = if cfg.timeout != null then cfg.timeout else "";

Expand Down

0 comments on commit 1d4b21e

Please sign in to comment.