Add named container

This commit is contained in:
Charlotte 🦝 Delenk 2022-01-14 16:47:24 +01:00
parent a0ba9c6b01
commit 01001d3142
Signed by: darkkirb
GPG key ID: 015E3768A70AFBC5
2 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1,14 @@
{ ... }: {
containers."named" = {
config = {
services.bind = {
enable = true;
forwarders = [
"2a01:4f8:c17:14df::1"
];
cacheNetworks = [ "0.0.0.0/0" "::/0" ];
};
system.stateVersion = "21.11";
};
};
}

View file

@ -6,6 +6,7 @@
(modulesPath + "/profiles/qemu-guest.nix") (modulesPath + "/profiles/qemu-guest.nix")
./grub.nix ./grub.nix
./server.nix ./server.nix
./containers/named.nix
]; ];
boot.initrd.availableKernelModules = [ "ata_piix" "virtio_pci" "virtio_scsi" "xhci_pci" "sd_mod" "sr_mod" ]; boot.initrd.availableKernelModules = [ "ata_piix" "virtio_pci" "virtio_scsi" "xhci_pci" "sd_mod" "sr_mod" ];