This commit is contained in:
2026-02-28 20:25:13 +00:00
parent bf41ee6e0a
commit 525c6a220b
2 changed files with 15 additions and 0 deletions

View File

@@ -58,5 +58,14 @@ in {
htop-vim
]);
};
# Adjust zsh prompt for dev archetype: show '#' instead of '%'
home-manager.sharedModules = lib.mkAfter [
{
programs.zsh.initExtra = lib.mkAfter ''
PROMPT="# %~ "
'';
}
];
};
}

View File

@@ -196,8 +196,14 @@ if [ "${push_deploy+x}" ]; then
# shellcheck disable=SC2068
nixos-anywhere -- $@ # --flake .#x86_64-linux --target-host proxydoe
log info "waiting for $target_host to become reachable via ssh..."
while ! puressh "$target_host" true 2>/dev/null; do
sleep 5
done
server_public_age_key=$(puressh "$target_host" cat /etc/ssh/ssh_host_ed25519_key.pub | ssh-to-age)
# shellcheck disable=SC2016
log info 'server'"'"'s public age key is `%s` use it in sops file and run regular deploys' "$server_public_age_key"