deploy: substitute on nix copy

keep-around/26ddc3f3395229b4ed61eed8e0a227b38eae13b2
hexchen 2020-11-29 04:55:43 +00:00
parent 8cb692c4fd
commit 26ddc3f339
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ let
in ''
(
echo "deploying ${hostname}..."
nix copy --no-check-sigs --to ssh://${hostAttrs.ssh.host} ${nixosSystem}
nix copy --no-check-sigs -s --to ssh://${hostAttrs.ssh.host} ${nixosSystem}
ssh $NIX_SSHOPTS ${hostAttrs.ssh.host} "sudo nix-env -p /nix/var/nix/profiles/system -i ${nixosSystem}"
ssh $NIX_SSHOPTS ${hostAttrs.ssh.host} "sudo /nix/var/nix/profiles/system/bin/switch-to-configuration $MODE $ARGS"
) &