mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-04-04 20:02:10 +02:00
Update
This commit is contained in:
12
hosts/server/modules/adguard.nix
Normal file
12
hosts/server/modules/adguard.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
# Network-wide ads & trackers blocking DNS server
|
||||
# Change your router primary DNS server to {this server IP} to make it network wide.
|
||||
{
|
||||
services.adguardhome = {
|
||||
enable = false;
|
||||
host = "0.0.0.0";
|
||||
port = 3000;
|
||||
allowDHCP = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
networking.firewall.allowedTCPPorts = [ 53 3000 ];
|
||||
}
|
||||
Reference in New Issue
Block a user