From 223f716b856cdd6ab16da83bd1b1ac3c6a5883bb Mon Sep 17 00:00:00 2001 From: ashisgreat22 Date: Wed, 18 Mar 2026 22:06:47 +0100 Subject: [PATCH] Remove explicit filter IDs from AdGuard config to avoid unmarshalling errors --- modules/adguard.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/adguard.nix b/modules/adguard.nix index 75237ae..147039e 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 = lib.imap0 (i: f: { inherit (f) name url enabled; id = i + 1; }) cfg.filters; }}" + "f /run/adguardhome_filters.json 0644 root root - ${builtins.toJSON { filters = map (f: { inherit (f) name url enabled; }) cfg.filters; }}" ]; services.adguardhome = {