1
Fork 0
satellite/hosts/nixos/common/optional/services/acme.nix

19 lines
495 B
Nix
Raw Permalink Normal View History

2024-04-07 12:11:57 +02:00
{ config, ... }: {
2024-05-09 03:33:22 +02:00
sops.secrets.cloudflare_dns_api_token.sopsFile = ../../secrets.yaml;
2024-04-07 12:11:57 +02:00
sops.templates."acme.env".content = ''
2024-05-09 03:33:22 +02:00
CF_DNS_API_TOKEN=${config.sops.placeholder.cloudflare_dns_api_token}
2024-04-07 12:11:57 +02:00
'';
security.acme.acceptTerms = true;
security.acme.defaults = {
email = "acme@moonythm.dev";
2024-05-09 03:33:22 +02:00
dnsProvider = "cloudflare";
2024-04-07 12:11:57 +02:00
environmentFile = config.sops.templates."acme.env".path;
};
environment.persistence."/persist/state".directories = [
"/var/lib/acme"
];
}