From 745c69ba0e1cb17718f1b706a851e5367a755cdc Mon Sep 17 00:00:00 2001 From: osbm Date: Sat, 11 Jan 2025 02:50:18 +0300 Subject: [PATCH] add bsky and delete them by default --- common/concentration.nix | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/common/concentration.nix b/common/concentration.nix index 961f01f..9545c58 100644 --- a/common/concentration.nix +++ b/common/concentration.nix @@ -7,14 +7,19 @@ options = { blockYoutube = lib.mkOption { type = lib.types.bool; - default = false; + default = true; description = "Disables youtube using /etc/hosts file"; }; blockTwitter = lib.mkOption { type = lib.types.bool; - default = false; + default = true; description = "Disables twitter using /etc/hosts file"; }; + blockBluesky = lib.mkOption { + type = lib.types.bool; + default = true; + description = "Disables bluesky using /etc/hosts file"; + }; }; config = lib.mkMerge [ @@ -36,5 +41,14 @@ ::0 www.twitter.com ''; }) + (lib.mkIf config.blockBluesky { + networking.extraHosts = '' + 0.0.0.0 bsky.app + ::0 bsky.app + + 0.0.0.0 www.bsky.app + ::0 www.bsky.app + ''; + }) ]; }