From 5dd9bf1cd23a1bede4ab7af4bb12f32478fdea53 Mon Sep 17 00:00:00 2001 From: winston Date: Thu, 13 Jul 2023 08:47:35 +0200 Subject: [PATCH] feat(network): better social blocklist grep --- machines/common/linux/network.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/machines/common/linux/network.nix b/machines/common/linux/network.nix index d636424..5bcfbe8 100644 --- a/machines/common/linux/network.nix +++ b/machines/common/linux/network.nix @@ -43,7 +43,7 @@ networking.hostFiles = [ "${pkgs.runCommand "stevenblack-hosts-custom" {} '' mkdir -p $out - grep -E "(facebook|instagram|tiktok|twitter)" \ + grep -zoiP "#\s?(facebook|instagram|reddit|twitter|tiktok|whatsapp)\n[\d.\w\s-]*" \ ${pkgs.stevenblack-blocklist}/alternates/social/hosts \ > $out/hosts ''}/hosts"