nixos/applications/acme.nix

30 lines
673 B
Nix
Raw Permalink Normal View History

2023-06-15 20:38:42 +00:00
{ config, ... }:{
2023-04-20 18:03:11 +00:00
# group that will own the certificates
users.groups.acme = {};
age.secrets.acme.file = ../secrets/dns_certs.secret.age;
security.acme = {
preliminarySelfsigned = false;
acceptTerms = true;
defaults = {
email = "admin_acme@skynet.ie";
2023-06-15 20:38:42 +00:00
# we use our own dns authorative server for verifying we own the domain.
2023-04-20 18:03:11 +00:00
dnsProvider = "rfc2136";
2023-06-15 20:38:42 +00:00
credentialsFile = config.age.secrets.acme.path;
2023-04-20 18:03:11 +00:00
};
certs = {
"skynet" = {
domain = "skynet.ie";
extraDomainNames = [
"*.skynet.ie"
"*.minecraft.games.skynet.ie"
2023-06-17 21:51:13 +00:00
"*.pages.skynet.ie"
];
2023-04-20 18:03:11 +00:00
};
};
};
}