init new infra

This commit is contained in:
nora 2024-07-26 18:19:07 +02:00
parent 83458998aa
commit 0825d85c93
6 changed files with 206 additions and 0 deletions

View file

@ -0,0 +1,28 @@
{ pkgs, ... }: {
# get the package for the debugging tools
environment.systemPackages = with pkgs; [ knot-dns ];
networking.firewall.allowedUDPPortRanges = [
{ from = 53; to = 53; }
];
services.knot = {
enable = true;
settingsFile = pkgs.writeTextFile {
name = "knot.conf";
text = ''
server:
listen: 0.0.0.0@53
listen: ::@53
zone:
- domain: noratrieb.dev
storage: /var/lib/knot/zones/
file: ${import ./noratrieb.dev.nix { inherit pkgs; }}
log:
- target: syslog
any: info
'';
};
};
}