depot/cluster/services/acme-client/client.nix

11 lines
352 B
Nix
Raw Permalink Normal View History

2022-08-07 22:06:17 +03:00
{ cluster, config, pkgs, ... }:
{
age.secrets.pdns-api-key-acme = cluster.config.vars.pdns-api-key-secret // { owner = "acme"; };
security.acme.defaults.credentialsFile = pkgs.writeText "acme-pdns-credentials" ''
PDNS_API_URL=${cluster.config.links.powerdns-api.url}
PDNS_API_KEY_FILE=${config.age.secrets.pdns-api-key-acme.path}
'';
}