# Adguard is a network-wide ad blocker # When installed, open localhost:3000 to setup {config, ...}: let domain = "adguard.hadi.diy"; in { services = { adguardhome = { enable = true; port = 3000; }; nginx.virtualHosts."${domain}" = { useACMEHost = "hadi.diy"; forceSSL = true; locations."/" = { proxyPass = "http://127.0.0.1:${toString config.services.adguardhome.port}"; }; }; }; }