Files
homelab/containers/dns.nix
2025-12-09 14:35:20 +01:00

40 lines
625 B
Nix

{
...
}:
{
my-lxc.dns = {
container = {
cores = 2;
memory = 1024;
disk = "5G";
swap = 768;
};
system = {
port = 80;
additionalPorts = [
53
];
udpPorts = [
53
67
5335 # unbound
68 # DHCP
];
importConfig = [
../config/dns-adguardhome.nix
../config/dns-unbound.nix
];
services.resolved.enable = false;
};
logging = {
enable = true;
metricsEnable = true;
prometheusPorts = {
unbound = 9167;
};
};
private = true;
auth = true;
};
}