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