secrets.yaml: move ssh host keys

This commit is contained in:
zowoq 2024-06-30 13:20:54 +10:00
parent 2f94a01687
commit 907a7082ad
8 changed files with 16 additions and 163 deletions

View file

@ -162,9 +162,9 @@ def decrypt_host_key(flake_attr: str, tmpdir: str) -> None:
[
"sops",
"--extract",
'["ssh_host_ed25519_key"]',
f'["ssh_host_ed25519_key"]["{flake_attr}"]',
"--decrypt",
f"{ROOT}/hosts/{flake_attr}/secrets.yaml",
f"{ROOT}/secrets.yaml",
],
check=True,
stdout=fh,