Files
homelab/containers/dns.nix
T
Xavier Morel 78c3c3bf68
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 2s
chore: add icons & descr for authentik
2026-06-01 15:04:20 +02:00

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";
};
}