lab-infra/machines/dns01/nsd.nix
Constantin Gierczak--Galle 6d09d3a0b3
Some checks failed
Check meta / check_meta (push) Failing after 14s
lint / check (push) Successful in 17s
build configuration / build_krz01 (push) Failing after 15s
feat(voice01): init (#12)
Also update dns01 config.

This PR adds the configuration for a Mumble server @voice.lab.dgnum.eu

Reviewed-on: #12
Co-authored-by: Constantin Gierczak--Galle <git.cst1@mailbox.org>
Co-committed-by: Constantin Gierczak--Galle <git.cst1@mailbox.org>
2025-01-13 12:34:03 +01:00

29 lines
540 B
Nix

{
sources,
lib,
meta,
...
}:
let
dns = import sources.dns-nix { };
in
{
services.nsd = {
enable = true;
verbosity = 1000;
interfaces = [ "2a0e:e701:1120:1000:ffff::45.13.104.26" ];
zones = {
"lab.dgnum.eu" = {
# provideXFR = [ ... ];
# notify = [ ... ];
data = dns.lib.toString "lab.dgnum.eu" (import ./lab.dgnum.eu.nix { inherit meta dns lib; });
};
};
};
networking.firewall = {
enable = true;
allowedTCPPorts = [ 53 ];
allowedUDPPorts = [ 53 ];
};
}