mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 11:41:34 +01:00
install-anywhere: Fix by writing age key to new age.pub file
This commit is contained in:
parent
1170bbf857
commit
2182e06bb6
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ _: {
|
|||
|
||||
echo "==> Replacing old age key with new age key..."
|
||||
new_age_key="$(ssh-to-age -i "$ssh_dir/ssh_host_ed25519_key.pub")"
|
||||
sed -i -E "s|(agePublicKey\s*=\s*\")[^\"]*(\";)|\1$new_age_key\2|" "hosts/$host/default.nix"
|
||||
echo "$new_age_key" > "hosts/$host/keys/age.pub"
|
||||
|
||||
echo "==> Updating SOPS secrets..."
|
||||
if BW_SESSION="$(bw unlock --raw || bw login --raw)"; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue