fix(adguard): use lib.length instead of == for empty check

Nix doesn't support == operator.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
ashisgreat22 2026-03-18 19:27:47 +01:00
parent 51e937c02f
commit 7bdbe767b6

View file

@ -109,7 +109,7 @@ in
'') cfg.clients '') cfg.clients
)} )}
'' + '' '' + ''
+ lib.optionalString (cfg.clients == []) '' + lib.optionalString (lib.length cfg.clients == 0) ''
clients: clients:
persistent: [] persistent: []