fix(fish): persist remote system deployments

This commit was merged in pull request #138.
This commit is contained in:
2026-10-07 17:43:20 -04:00
parent ec1c0fba56
commit b3c4903c82
2 changed files with 10 additions and 2 deletions

View File

@@ -80,6 +80,13 @@ else
echo "deploy-to: $host already has the full closure for $system_path" >&2
end
echo "deploy-to: recording $system_path as the system profile on $host" >&2
ssh -t $host sudo nix-env --profile /nix/var/nix/profiles/system --set $system_path
or begin
echo "deploy-to: system profile update failed for $host" >&2
return $status
end
echo "deploy-to: activating $system_path on $host" >&2
ssh -t $host sudo "$system_path/bin/switch-to-configuration" switch
or begin