Added no_yt specialisation
This commit is contained in:
parent
7a86aca3a4
commit
6b0afb428e
2 changed files with 39 additions and 18 deletions
|
|
@ -1 +1 @@
|
||||||
Added shortcut for stopping and continuing programs
|
Added no_yt specialisation
|
||||||
|
|
|
||||||
|
|
@ -346,12 +346,9 @@ in
|
||||||
|
|
||||||
networking.nameservers = [ ];
|
networking.nameservers = [ ];
|
||||||
|
|
||||||
specialisation = {
|
specialisation =
|
||||||
productive = {
|
let
|
||||||
inheritParentConfig = true;
|
blocky_config = blocked_domains: {
|
||||||
configuration = {
|
|
||||||
environment.systemPackages = basePackages;
|
|
||||||
programs.steam.enable = lib.mkOverride 99 false;
|
|
||||||
services.blocky = {
|
services.blocky = {
|
||||||
enable = lib.mkOverride 99 true;
|
enable = lib.mkOverride 99 true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|
@ -370,15 +367,7 @@ in
|
||||||
#Enable Blocking of certian domains.
|
#Enable Blocking of certian domains.
|
||||||
blocking = {
|
blocking = {
|
||||||
blackLists = {
|
blackLists = {
|
||||||
unproductive = [
|
unproductive = [ blocked_domains ];
|
||||||
''
|
|
||||||
|
|
|
||||||
www.youtube.com
|
|
||||||
tilvids.com
|
|
||||||
mastodon.social
|
|
||||||
underhound.eu
|
|
||||||
''
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
#Configure what block categories are used
|
#Configure what block categories are used
|
||||||
clientGroupsBlock = {
|
clientGroupsBlock = {
|
||||||
|
|
@ -389,7 +378,39 @@ in
|
||||||
};
|
};
|
||||||
networking.nameservers = lib.mkOverride 99 [ "127.0.0.1" ];
|
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
|
||||||
|
]
|
||||||
|
);
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue