fix(adguard): rewrite with correct lib.length syntax
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
7bdbe767b6
commit
93bef3b301
1 changed files with 1 additions and 12 deletions
|
|
@ -98,18 +98,7 @@ in
|
||||||
querylog_file_enabled: true
|
querylog_file_enabled: true
|
||||||
statistics_enabled: true
|
statistics_enabled: true
|
||||||
|
|
||||||
${lib.optionalString (cfg.clients != []) ''
|
${lib.optionalString (lib.length cfg.clients == 0) ''
|
||||||
clients:
|
|
||||||
persistent:
|
|
||||||
${lib.concatStringsSep "\n " (
|
|
||||||
map (client: ''
|
|
||||||
- name: ${client.name}
|
|
||||||
ids:
|
|
||||||
- ${config.sops.placeholder.${client.idSecret}}
|
|
||||||
'') cfg.clients
|
|
||||||
)}
|
|
||||||
'' + ''
|
|
||||||
+ lib.optionalString (lib.length cfg.clients == 0) ''
|
|
||||||
clients:
|
clients:
|
||||||
persistent: []
|
persistent: []
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue