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) {
|
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 = {
|
||||||
|
|||||||
Reference in New Issue
Block a user