ahuston-0 6f5f060ccb
experimenting with custom lego bin again
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-12-04 21:33:01 -05:00

36 lines
810 B
Nix

{
config,
lib,
pkgs,
...
}:
{
security.acme = {
acceptTerms = true;
defaults.email = "aliceghuston@gmail.com";
certs."nayeonie.com" = {
dnsProvider = "bunny";
environmentFile = config.sops.secrets."acme/bunny".path;
dnsPropagationCheck = false;
group = "haproxy";
extraDomainNames = [
# "*.nayeonie.com"
# "alicehuston.xyz"
# "*.alicehuston.xyz"
];
};
};
security.acme.defaults.server = "https://acme-staging-v02.api.letsencrypt.org/directory";
systemd.services."acme-nayeonie.com".serviceConfig = {
Environment = [ ''"PATH=/ZFS/ZFS-primary/backups/lego/dist:$PATH"'' ];
# Environment = [ "LEGO_DISABLE_CNAME_SUPPORT=false" ];
};
sops.secrets = {
"acme/bunny" = {
owner = "root";
};
};
}