diff --git a/modules/adguard.nix b/modules/adguard.nix index 7064021..99f535c 100644 --- a/modules/adguard.nix +++ b/modules/adguard.nix @@ -98,18 +98,7 @@ in querylog_file_enabled: true statistics_enabled: true - ${lib.optionalString (cfg.clients != []) '' - 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) '' + ${lib.optionalString (lib.length cfg.clients == 0) '' clients: persistent: []