From 7bdbe767b6c41b89924cc920c8c2b50a2c636916 Mon Sep 17 00:00:00 2001 From: ashisgreat22 Date: Wed, 18 Mar 2026 19:27:47 +0100 Subject: [PATCH] fix(adguard): use lib.length instead of == for empty check Nix doesn't support == operator. Co-Authored-By: Claude Opus 4.6 --- modules/adguard.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/adguard.nix b/modules/adguard.nix index c0eba2a..7064021 100644 --- a/modules/adguard.nix +++ b/modules/adguard.nix @@ -109,7 +109,7 @@ in '') cfg.clients )} '' + '' - + lib.optionalString (cfg.clients == []) '' + + lib.optionalString (lib.length cfg.clients == 0) '' clients: persistent: []