mirror of
https://github.com/thegeneralist01/config.git
synced 2026-03-07 10:59:55 +01:00
24 lines
565 B
Nix
24 lines
565 B
Nix
{ config, ... }: let
|
|
domain = "thegeneralist01.com";
|
|
in {
|
|
age.secrets.acmeEnvironment.file = ./acmeEnvironment.age;
|
|
|
|
security.acme = {
|
|
defaults = {
|
|
# Options: https://go-acme.github.io/lego/dns/
|
|
environmentFile = config.age.secrets.acmeEnvironment.path;
|
|
email = "thegeneralist01@proton.me";
|
|
dnsResolver = "1.1.1.1";
|
|
dnsProvider = "cloudflare";
|
|
};
|
|
|
|
certs.${domain} = {
|
|
extraDomainNames = [ "*.${domain}" ];
|
|
group = "acme";
|
|
};
|
|
|
|
acceptTerms = true;
|
|
};
|
|
|
|
users.groups.acme.members = [ "nginx" ];
|
|
}
|