nixos/security: add acme through dns challenge
Check / Nix flake (push) Failing after 8s
Lint / Nix expressions (push) Failing after 10s

few side refactors of this:
- no more `dns.domain`, it all must rely on `fqdn`, prevents
  inconsistencies.
- also added an specific host `tuxcord-acmetest` that uses the key zone
  for `nix.tuxcord.net` to test certificate pulling.
This commit is contained in:
2026-05-03 23:12:06 +02:00
parent 4f248dc3cb
commit ed9ec1aecf
12 changed files with 130 additions and 13 deletions
+12
View File
@@ -0,0 +1,12 @@
{ config, ... }:
let
inherit (config.networking) fqdn;
in
{
acme.enable = true;
acme.rfc2136.nameserver = "tuxcord.net";
dns.enable = true;
networking.fqdn = "nix.tuxcord.net";
time.timeZone = "Europe/Madrid";
}