mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git
synced 2025-01-09 09:21:04 +00:00
23 lines
540 B
Nix
23 lines
540 B
Nix
|
{ config, pkgs, ... }:
|
||
|
let
|
||
|
cfg = config.services.userdata;
|
||
|
in
|
||
|
{
|
||
|
users.groups.acmerecievers = {
|
||
|
members = [ "nginx" "dovecot2" "postfix" "virtualMail" "ocserv" ];
|
||
|
};
|
||
|
security.acme = {
|
||
|
acceptTerms = true;
|
||
|
email = "${cfg.username}@${cfg.domain}";
|
||
|
certs = {
|
||
|
"${cfg.domain}" = {
|
||
|
domain = "*.${cfg.domain}";
|
||
|
extraDomainNames = [ "${cfg.domain}" ];
|
||
|
group = "acmerecievers";
|
||
|
dnsProvider = "cloudflare";
|
||
|
credentialsFile = "/var/cloudflareCredentials.ini";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|