acme ownership for hetzner api key
All checks were successful
Build hosts / build-hosts (pull_request) Successful in 17s
Flake check / flake-check (pull_request) Successful in 18s

This commit is contained in:
sid 2026-04-03 16:42:33 +02:00
parent 04d03398bf
commit 6c9fd17e00

View file

@ -51,8 +51,6 @@ in
credentialsFile = config.sops.templates.hetzner-dns-api-key.path;
};
};
sops.secrets.hetzner-dns-api-key = { };
sops.templates.hetzner-dns-api-key.content = "HETZNER_API_TOKEN=${config.sops.placeholder.hetzner-dns-api-key}";
services.nginx = {
enable = true;
@ -114,4 +112,18 @@ in
# };
# };
};
sops =
let
owner = "acme";
group = "acme";
mode = "0400";
in
{
secrets.hetzner-dns-api-key = { inherit owner group mode; };
templates.hetzner-dns-api-key = {
inherit owner group mode;
content = "HETZNER_API_TOKEN=${config.sops.placeholder.hetzner-dns-api-key}";
};
};
}