mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-05-20 21:32:33 +02:00
302f0ceec9
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
16 lines
424 B
Nix
16 lines
424 B
Nix
# Adguard is a network-wide ad blocker
|
|
# When installed, open localhost:3000 to setup
|
|
{config, ...}: {
|
|
services.adguardhome = {
|
|
enable = true;
|
|
port = 3000;
|
|
};
|
|
|
|
networking.firewall = {
|
|
allowedTCPPorts = [53];
|
|
allowedUDPPorts = [53];
|
|
};
|
|
|
|
services.cloudflared.tunnels."${config.var.tunnelId}".ingress."adguard.${config.var.domain}" = "http://localhost:${toString config.services.adguardhome.port}";
|
|
}
|