Fix nixos-rebuild missing --override-input's

This commit is contained in:
Sandro - 2023-01-17 00:38:38 +01:00
parent 6d1ecddb5f
commit 9d2c57fa20
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 1 additions and 2 deletions

View File

@ -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} "$@"
'';