flake: preDeploy: fix host/addr mixup
This commit is contained in:
parent
6da85f6d8f
commit
8de015f098
|
@ -272,10 +272,10 @@
|
|||
|
||||
# add more `-v` for more verbosity (up to 5).
|
||||
# i copy the closure here separately from the nixos-rebuild mostly for the sake of introspectability.
|
||||
nix-copy-closure -v --gzip --to '${host}' "$storePath"
|
||||
nix-copy-closure -v --gzip --to '${addr}' "$storePath"
|
||||
${pkgs.lib.optionalString (action != null) ''
|
||||
ssh '${host}' sudo nix-env -p /nix/var/nix/profiles/system --set "$storePath"
|
||||
ssh '${host}' sudo "$storePath/bin/switch-to-configuration" '${action}'
|
||||
ssh '${addr}' sudo nix-env -p /nix/var/nix/profiles/system --set "$storePath"
|
||||
ssh '${addr}' sudo "$storePath/bin/switch-to-configuration" '${action}'
|
||||
''}
|
||||
'';
|
||||
deployApp = host: addr: action: {
|
||||
|
|
Loading…
Reference in New Issue