1
0
Fork 0

Don't build nixos-rebuild locally

This commit is contained in:
Sandro - 2023-06-23 18:54:57 +02:00
parent 7b7d7c0c2a
commit 0518bc47ba
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 1 additions and 2 deletions

View File

@ -121,8 +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 ${overrideInputsArgs} --no-link --json | ${pkgs.jq}/bin/jq -r '.[0].outputs.out')
nix copy --no-check-sigs --to ssh-ng://${target} $nixosRebuild
nixosRebuild=$(ssh ${target} nix build ${self}#nixosConfigurations.${name}.config.system.build.nixos-rebuild ${overrideInputsArgs} --no-link --json | ${pkgs.jq}/bin/jq -r '.[0].outputs.out')
ssh ${target} $nixosRebuild/bin/nixos-rebuild ${rebuildArg} "$@"
'';