Remove explicit filter IDs from AdGuard config to avoid unmarshalling errors
This commit is contained in:
parent
8a9c513fde
commit
223f716b85
1 changed files with 1 additions and 1 deletions
|
|
@ -80,7 +80,7 @@ in
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
# Generate a temporary JSON file containing the filters for yq to inject
|
# Generate a temporary JSON file containing the filters for yq to inject
|
||||||
systemd.tmpfiles.rules = [
|
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 = {
|
services.adguardhome = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue