initial commit

This commit is contained in:
2026-05-14 13:39:10 +02:00
commit 7e444146d2
37 changed files with 1537 additions and 0 deletions

24
configuration/acme.nix Normal file
View File

@@ -0,0 +1,24 @@
{ config, lib, ... }:
{
options.domainName = lib.mkOption { type = lib.types.str; };
config = {
domainName = "fredinand.xyz";
security.acme = {
acceptTerms = true;
defaults.email = "admin@${config.domainName}";
certs = {
"${config.domainName}" = {
dnsProvider = "porkbun";
environmentFile = config.sops.secrets."porkbun".path;
group = config.services.nginx.group;
extraDomainNames = [
"mail.${config.domainName}"
"www.${config.domainName}"
];
};
};
};
sops.secrets."porkbun" = {};
};
}