❄️ Nix configurations
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

add adguard

A.Ottr 33186a59 2d2b4b0c

+41
+40
nixos/ferret/adguard.nix
··· 1 + { pkgs, config, ... }: 2 + 3 + { 4 + networking.firewall.allowedTCPPorts = [ 53 ]; 5 + 6 + services.adguardhome = { 7 + enable = true; 8 + host = "127.0.0.1"; 9 + port = 3003; 10 + settings = { 11 + http = { 12 + address = "127.0.0.1:3003"; 13 + }; 14 + dhcp.enabled = false; 15 + dns = { 16 + upstream_dns = [ 17 + "1.1.1.1" 18 + "9.9.9.9#dns.quad9.net" 19 + "149.112.112.112#dns.quad9.net" 20 + ]; 21 + }; 22 + filtering = { 23 + protection_enabled = true; 24 + filtering_enabled = true; 25 + 26 + parental_enabled = false; 27 + safe_search = { 28 + enabled = false; 29 + }; 30 + }; 31 + # The following notation uses map 32 + # to not have to manually create {enabled = true; url = "";} for every filter 33 + # This is, however, fully optional 34 + filters = map(url: { enabled = true; url = url; }) [ 35 + "https://adguardteam.github.io/HostlistsRegistry/assets/filter_9.txt" # The Big List of Hacked Malware Web Sites 36 + "https://adguardteam.github.io/HostlistsRegistry/assets/filter_11.txt" # malicious url blocklist 37 + ]; 38 + }; 39 + }; 40 + }
+1
nixos/ferret/default.nix
··· 9 9 ./caddy.nix 10 10 ./paperless.nix 11 11 ./miniflux.nix 12 + ./adguard.nix 12 13 13 14 ./tailscale-splitdns.nix 14 15 ];