Fix nixos-rebuild missing --override-input's
This commit is contained in:
parent
6d1ecddb5f
commit
9d2c57fa20
|
@ -86,7 +86,6 @@ lib.attrsets.mapAttrs
|
|||
|
||||
nix copy --no-check-sigs --to ssh-ng://$1 ${inputPaths}
|
||||
|
||||
set -x
|
||||
ssh $1 -- nix build -L --no-link ${
|
||||
pkgs.lib.concatMapStringsSep " " (name:
|
||||
"${self}#nixosConfigurations.${name}.config.system.build.toplevel"
|
||||
|
@ -122,7 +121,7 @@ lib.attrsets.mapAttrs
|
|||
nix copy --no-check-sigs --to ssh-ng://${target} ${inputPaths}
|
||||
|
||||
# use nixos-rebuild from target config
|
||||
nixosRebuild=$(nix build ${self}#nixosConfigurations.${name}.config.system.build.nixos-rebuild --no-link --json | ${pkgs.jq}/bin/jq -r '.[0].outputs.out')
|
||||
nixosRebuild=$(nix build ${self}#nixosConfigurations.${name}.config.system.build.nixos-rebuild ${overrideInputsArgs} --no-link --json | ${pkgs.jq}/bin/jq -r '.[0].outputs.out')
|
||||
nix copy --no-check-sigs --to ssh-ng://${target} $nixosRebuild
|
||||
ssh ${target} $nixosRebuild/bin/nixos-rebuild ${rebuildArg} "$@"
|
||||
'';
|
||||
|
|
Loading…
Reference in New Issue