feat: parental control
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
with lib; let
|
||||
cfg = config.services.adguardhome;
|
||||
in {
|
||||
services.adguardhome = rec {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
port = 8753;
|
||||
@@ -31,6 +32,28 @@ in {
|
||||
"abaduh.local" = "100.86.139.22";
|
||||
"*.abaduh.local" = "100.86.139.22";
|
||||
};
|
||||
parental_enabled = false;
|
||||
safe_search.enabled = false;
|
||||
safebrowsing_enabled = false;
|
||||
blocked_services = {
|
||||
ids = ["youtube"];
|
||||
schedule =
|
||||
(mapAttrs (n: v: {
|
||||
start = elemAt v 0;
|
||||
end = elemAt v 1;
|
||||
}) rec {
|
||||
sat = ["0s" "24h"];
|
||||
sun = sat;
|
||||
mon = ["18h" "24h"];
|
||||
tue = mon;
|
||||
wed = mon;
|
||||
thu = mon;
|
||||
fri = mon;
|
||||
})
|
||||
// {
|
||||
time_zone = config.time.timeZone;
|
||||
};
|
||||
};
|
||||
};
|
||||
filters =
|
||||
imap (id: url: {
|
||||
|
||||
Reference in New Issue
Block a user