nixos: allow agenix to decrypt tailscale authkey via user ssh key

This commit is contained in:
2026-02-13 04:38:14 -08:00
committed by Kat Huang
parent 5d16fb00c0
commit 85ccfc622e

View File

@@ -10,6 +10,14 @@ makeEnable config "myModules.tailscale" true {
# Optional: unattended enrollment using a pre-auth key stored in agenix.
#
# Plaintext content "DISABLED" means "do nothing".
#
# This secret is encrypted to your "kanivan" SSH keys, so we include your
# user SSH key as an identity for decryption.
age.identityPaths = lib.mkDefault [
"/etc/ssh/ssh_host_ed25519_key"
"/home/imalison/.ssh/id_ed25519"
];
age.secrets.tailscale-authkey = {
file = ./secrets/tailscale-authkey.age;
owner = "root";