Remove explicit filter IDs from AdGuard config to avoid unmarshalling errors

This commit is contained in:
ashisgreat22 2026-03-18 22:06:47 +01:00
parent 8a9c513fde
commit 223f716b85

View file

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