add bsky and delete them by default
This commit is contained in:
parent
b079fb9e7b
commit
745c69ba0e
1 changed files with 16 additions and 2 deletions
|
|
@ -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
|
||||
'';
|
||||
})
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue