Add named container
This commit is contained in:
parent
a0ba9c6b01
commit
01001d3142
2 changed files with 15 additions and 0 deletions
14
config/containers/named.nix
Normal file
14
config/containers/named.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -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" ];
|
||||||
|
|
Loading…
Reference in a new issue