Fix AdGuard filter ID type (string to integer)
This commit is contained in:
parent
7ea9246d74
commit
8a9c513fde
1 changed files with 1 additions and 1 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue