Make named a service

This commit is contained in:
Charlotte 🦝 Delenk 2022-01-14 20:56:02 +01:00
parent c668d6fbd3
commit 69d875f2fb
Signed by: darkkirb
GPG key ID: 015E3768A70AFBC5
3 changed files with 38 additions and 44 deletions

View file

@ -1,43 +0,0 @@
{ ... }: {
containers."named" = {
autoStart = true;
config = {
services.bind = {
enable = true;
zones = {
"darkkirb.de" = {
master = false;
masters = [
"fd00:e621:e621::1"
];
file = "darkkirb.de.zone";
};
"chir.rs" = {
master = false;
masters = [
"fd00:e621:e621::1"
];
file = "chir.rs.zone";
};
"int.chir.rs" = {
master = false;
masters = [
"fd00:e621:e621::1"
];
file = "int.chir.rs.zone";
};
"rpz.int.chir.rs" = {
master = false;
masters = [
"fd00:e621:e621::1"
];
file = "rpz.int.chir.rs.zone";
};
};
};
system.stateVersion = "21.11";
};
};
networking.firewall.allowedTCPPorts = [ 53 ];
networking.firewall.allowedUDPPorts = [ 53 ];
}

View file

@ -6,7 +6,7 @@
(modulesPath + "/profiles/qemu-guest.nix")
./grub.nix
./server.nix
./containers/named.nix
./services/named.nix
./services/acme.nix
];

37
config/services/named.nix Normal file
View file

@ -0,0 +1,37 @@
{ ... }: {
services.bind = {
enable = true;
zones = {
"darkkirb.de" = {
master = false;
masters = [
"fd00:e621:e621::1"
];
file = "darkkirb.de.zone";
};
"chir.rs" = {
master = false;
masters = [
"fd00:e621:e621::1"
];
file = "chir.rs.zone";
};
"int.chir.rs" = {
master = false;
masters = [
"fd00:e621:e621::1"
];
file = "int.chir.rs.zone";
};
"rpz.int.chir.rs" = {
master = false;
masters = [
"fd00:e621:e621::1"
];
file = "rpz.int.chir.rs.zone";
};
};
};
networking.firewall.allowedTCPPorts = [ 53 ];
networking.firewall.allowedUDPPorts = [ 53 ];
}