aboutsummaryrefslogtreecommitdiff
path: root/modules/adguard.nix
diff options
context:
space:
mode:
authorKaran Jayachandra <mail@karanjayachandra.com>2026-07-31 22:54:41 +0200
committerKaran Jayachandra <mail@karanjayachandra.com>2026-07-31 22:54:41 +0200
commit6ff86c7f82e611bcaab6ca7880469a6728ca7bd6 (patch)
tree8b2189e6dec3ffef69548ff1d11273e40b27c6bc /modules/adguard.nix
parent4515b9c40279d9b0a1c3cca4d5e467b16064773e (diff)
Added the limitation to the log
Diffstat (limited to 'modules/adguard.nix')
-rw-r--r--modules/adguard.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/adguard.nix b/modules/adguard.nix
index 35cafc3..fc01278 100644
--- a/modules/adguard.nix
+++ b/modules/adguard.nix
@@ -67,6 +67,14 @@
enable_dnssec = true;
};
+ # Query log retention. `interval` accepts a duration string between
+ # "1h" and "8760h" (1 year) - trimmed down from AdGuard's 90-day
+ # default to 1 hour.
+ querylog = {
+ enabled = true;
+ interval = "1h";
+ };
+
# Users block: username "admin", password from sops secret.
# The ExecStartPre below writes the hash into the config on every
# service start, because mutableSettings=false uses a static config