From 55b8fc76140df3db67adf29087defcf5cb18dd23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Salcedo=20Garc=C3=ADa?= Date: Sun, 7 Jun 2026 00:09:18 +0200 Subject: [PATCH] wakapi: fix empty warning --- nixos/modules/services/web-apps/wakapi.nix | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/nixos/modules/services/web-apps/wakapi.nix b/nixos/modules/services/web-apps/wakapi.nix index 7d3f06db9854..e3861f889e19 100644 --- a/nixos/modules/services/web-apps/wakapi.nix +++ b/nixos/modules/services/web-apps/wakapi.nix @@ -196,14 +196,12 @@ in } ]; - warnings = [ - (lib.optionalString (cfg.database.createLocally && cfg.settings.db.dialect != "postgres") '' - You have enabled automatic database configuration, but the database dialect is not set to "posgres". + warnings = lib.optional (cfg.database.createLocally && cfg.settings.db.dialect != "postgres") '' + You have enabled automatic database configuration, but the database dialect is not set to "postgres". - The Wakapi module only supports PostgreSQL. Please set `services.wakapi.database.createLocally` - to `false`, or switch to "postgres" as your database dialect. - '') - ]; + The Wakapi module only supports PostgreSQL. Please set `services.wakapi.database.createLocally` + to `false`, or switch to "postgres" as your database dialect. + ''; users = { users.wakapi = {