packages: fix nixos-rebuild

This commit is contained in:
Sandro - 2023-12-16 16:55:46 +01:00
parent 6ef7b14c27
commit bdb9f59e78
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ lib.attrsets.mapAttrs
ssh ${target} bash -e <<END
set -eou pipefail
nix build --no-link ${toplevelDrvPath}
nix build --no-link ${toplevelDrvPath}^*
${discardStringCtx hostConfig.nix.package}/bin/nix-env -p /nix/var/nix/profiles/system --set ${toplevelOutPath}
${toplevelOutPath}/bin/switch-to-configuration "''${@:-switch}"
END