feat: parental control

This commit is contained in:
Guz
2025-09-13 22:11:53 -03:00
parent 9c7b53bf0b
commit defd3cbdf4

View File

@@ -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: {