Added no_yt specialisation

This commit is contained in:
EsVagy42 2025-10-29 12:29:55 +01:00
parent 7a86aca3a4
commit 6b0afb428e
2 changed files with 39 additions and 18 deletions

View file

@ -1 +1 @@
Added shortcut for stopping and continuing programs
Added no_yt specialisation

View file

@ -346,12 +346,9 @@ in
networking.nameservers = [ ];
specialisation = {
productive = {
inheritParentConfig = true;
configuration = {
environment.systemPackages = basePackages;
programs.steam.enable = lib.mkOverride 99 false;
specialisation =
let
blocky_config = blocked_domains: {
services.blocky = {
enable = lib.mkOverride 99 true;
settings = {
@ -370,15 +367,7 @@ in
#Enable Blocking of certian domains.
blocking = {
blackLists = {
unproductive = [
''
|
www.youtube.com
tilvids.com
mastodon.social
underhound.eu
''
];
unproductive = [ blocked_domains ];
};
#Configure what block categories are used
clientGroupsBlock = {
@ -389,7 +378,39 @@ in
};
networking.nameservers = lib.mkOverride 99 [ "127.0.0.1" ];
};
unproductive_sites_addresses = ''
tilvids.com
mastodon.social
underhound.eu
'';
youtube_address = "www.youtube.com";
in
{
productive = {
inheritParentConfig = true;
configuration = {
environment.systemPackages = basePackages;
programs.steam.enable = lib.mkOverride 99 false;
}
// blocky_config (
lib.strings.concatStringsSep "\n" [
"|"
unproductive_sites_addresses
youtube_address
]
);
};
no_yt = {
inheritParentConfig = true;
configuration = {
environment.systemPackages = basePackages ++ unproductivePackages;
}
// blocky_config (
lib.strings.concatStringsSep "\n" [
"|"
youtube_address
]
);
};
};
}