add bsky and delete them by default

This commit is contained in:
Osman Faruk Bayram 2025-01-11 02:50:18 +03:00
parent b079fb9e7b
commit 745c69ba0e

View file

@ -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
'';
})
];
}