Make named a service
This commit is contained in:
parent
c668d6fbd3
commit
69d875f2fb
3 changed files with 38 additions and 44 deletions
|
@ -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 ];
|
||||
}
|
|
@ -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
37
config/services/named.nix
Normal 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 ];
|
||||
}
|
Loading…
Reference in a new issue