42 lines
793 B
Nix
42 lines
793 B
Nix
{
|
|
...
|
|
}:
|
|
{
|
|
my-lxc.dns = {
|
|
container = {
|
|
cores = 2;
|
|
memory = 1024;
|
|
disk = "5632M";
|
|
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;
|
|
description = "Serveur DNS & DHCP fourni par AdGuardHome & Unbound.";
|
|
icon = "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/adguard-home.png";
|
|
};
|
|
}
|