fix(adguard): add empty clients list when no clients configured
AdGuard Home fails with empty persistent list. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
7b9b1e1909
commit
51e937c02f
1 changed files with 7 additions and 1 deletions
|
|
@ -97,7 +97,8 @@ in
|
||||||
querylog_enabled: true
|
querylog_enabled: true
|
||||||
querylog_file_enabled: true
|
querylog_file_enabled: true
|
||||||
statistics_enabled: true
|
statistics_enabled: true
|
||||||
'' + lib.optionalString (cfg.clients != []) ''
|
|
||||||
|
${lib.optionalString (cfg.clients != []) ''
|
||||||
clients:
|
clients:
|
||||||
persistent:
|
persistent:
|
||||||
${lib.concatStringsSep "\n " (
|
${lib.concatStringsSep "\n " (
|
||||||
|
|
@ -107,6 +108,11 @@ in
|
||||||
- ${config.sops.placeholder.${client.idSecret}}
|
- ${config.sops.placeholder.${client.idSecret}}
|
||||||
'') cfg.clients
|
'') cfg.clients
|
||||||
)}
|
)}
|
||||||
|
'' + ''
|
||||||
|
+ lib.optionalString (cfg.clients == []) ''
|
||||||
|
clients:
|
||||||
|
persistent: []
|
||||||
|
|
||||||
'' + ''
|
'' + ''
|
||||||
|
|
||||||
filtering:
|
filtering:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue