set pihole as sole dns

This commit is contained in:
2026-01-18 21:34:28 -06:00
parent 76a072d274
commit 55b1cae63b

View File

@@ -7,19 +7,15 @@
config = lib.mkIf (config.sysconfig.docker.pihole.enable && config.sysconfig.docker.enable) {
networking = {
firewall.interfaces."docker0" = {
allowedTCPPorts = [ 53 ];
allowedUDPPorts = [ 53 ];
};
environment.etc."resolv.conf" = {
enable = true;
text = ''
nameserver 127.0.0.1
options edns0
'';
nameservers = lib.mkForce [
"127.0.0.1"
];
networkmanager = {
dns = lib.mkForce "none";
};
user = "root";
mode = "0664";
};
virtualisation.oci-containers.containers.pihole = {