From 8a9c513fde9a48c38f526ffe3148437204ff99d6 Mon Sep 17 00:00:00 2001 From: ashisgreat22 Date: Wed, 18 Mar 2026 22:02:44 +0100 Subject: [PATCH] Fix AdGuard filter ID type (string to integer) --- modules/adguard.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/adguard.nix b/modules/adguard.nix index 87e0d0c..75237ae 100644 --- a/modules/adguard.nix +++ b/modules/adguard.nix @@ -80,7 +80,7 @@ in config = lib.mkIf cfg.enable { # Generate a temporary JSON file containing the filters for yq to inject systemd.tmpfiles.rules = [ - "f /run/adguardhome_filters.json 0644 root root - ${builtins.toJSON { filters = map (f: { inherit (f) name url enabled; id = (builtins.hashString "sha256" f.url); }) cfg.filters; }}" + "f /run/adguardhome_filters.json 0644 root root - ${builtins.toJSON { filters = lib.imap0 (i: f: { inherit (f) name url enabled; id = i + 1; }) cfg.filters; }}" ]; services.adguardhome = {