set pihole as sole dns
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user