From 382e7efa4b2d0d74333c3827a3d8037376a79e02 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Tue, 17 Sep 2024 22:42:02 +0530 Subject: [PATCH] rico0: blocky - add allowlist --- hosts/rico0/services/apps/blocky.nix | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/hosts/rico0/services/apps/blocky.nix b/hosts/rico0/services/apps/blocky.nix index 2927594..09c8d62 100644 --- a/hosts/rico0/services/apps/blocky.nix +++ b/hosts/rico0/services/apps/blocky.nix @@ -1,4 +1,4 @@ -_: +{ pkgs, ... }: let inherit (import ../../../shared/caddy-helpers.nix) logFormat; domainName = "blocky.labs.adtya.xyz"; @@ -92,11 +92,21 @@ in denylists = { ads = [ "https://raw.githubusercontent.com/blocklistproject/Lists/master/ads.txt" + ]; + pihole = [ "https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts" ]; }; + allowlists = { + pihole = [ + (pkgs.writeText "allowlist.txt" '' + s.youtube.com + '') + ]; + + }; clientGroupsBlock = { - default = [ "ads" ]; + default = [ "ads" "pihole" ]; }; }; clientLookup = {