flake: preDeploy: fix host/addr mixup

This commit is contained in:
Colin 2024-02-03 02:10:42 +00:00
parent 6da85f6d8f
commit 8de015f098
1 changed files with 3 additions and 3 deletions

View File

@ -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: {