1 { pkgs, lib, config, ... }:
3 domain = "autogeree.net";
4 inherit (config.users) groups;
7 networking.nftables.ruleset = ''
9 set output-net-lego-ipv4 {
11 elements = { 217.70.177.40 }
13 set output-net-lego-ipv6 {
15 elements = { 2001:4b98:d:1::40 }
19 systemd.services."acme-${domain}".after = [
22 security.acme.certs.${domain} = {
23 email = "root+letsencrypt@${domain}";
27 group = groups."acme".name;
29 dnsProvider = "rfc2136";
30 credentialsFile = pkgs.writeText "credentials" ''
31 RFC2136_NAMESERVER=127.0.0.1:5353
32 RFC2136_PROPAGATION_TIMEOUT=1000
33 RFC2136_POLLING_INTERVAL=30
34 RFC2136_SEQUENCE_INTERVAL=30
35 RFC2136_DNS_TIMEOUT=1000