configurations for my servers and desktops
nix nixos flake dots dotfiles

feat: blocky

+34
+1
hosts/bluepill/default.nix
··· 1 1 {pkgs, ...}: { 2 2 imports = [ 3 3 ./hardware.nix 4 + ../../modules/nixos/services/blocky.nix 4 5 ../../modules/nixos/services/homepage.nix 5 6 ../../modules/nixos/services/jellyfin.nix 6 7 ../../modules/nixos/services/mikusmp67.nix
+33
modules/nixos/services/blocky.nix
··· 1 + {...}: { 2 + networking.firewall = { 3 + allowedTCPPorts = [53]; 4 + allowedUDPPorts = [53]; 5 + }; 6 + 7 + services.blocky = { 8 + enable = true; 9 + settings = { 10 + ports.dns = 53; 11 + upstreams.groups.default = [ 12 + "https://one.one.one.one/dns-query" 13 + ]; 14 + blocking = { 15 + denylists = { 16 + ads = [ 17 + "https://cdn.jsdelivr.net/gh/hagezi/dns-blocklists@latest/wildcard/pro.txt" 18 + ]; 19 + }; 20 + clientGroupsBlock = { 21 + default = [ 22 + "ads" 23 + ]; 24 + }; 25 + }; 26 + caching = { 27 + minTime = "5m"; 28 + maxTime = "30m"; 29 + prefetching = true; 30 + }; 31 + }; 32 + }; 33 + }