1
Fork 0
satellite/hosts/nixos/common/optional/services/acme/default.nix
2024-02-12 14:32:59 +01:00

14 lines
360 B
Nix

{ config, ... }: {
sops.secrets.porkbun_secrets.sopsFile = ./secrets.yaml;
security.acme.acceptTerms = true;
security.acme.defaults = {
email = "acme@moonythm.dev";
dnsProvider = "porkbun";
environmentFile = config.sops.secrets.porkbun_secrets.path;
};
environment.persistence."/persist/state".directories = [
"/var/lib/acme"
];
}