From 62525d0ac3a6a921c1bf4630f415cd36a90381c1 Mon Sep 17 00:00:00 2001 From: Maximilian Marx Date: Sat, 20 Jun 2026 17:36:24 +0200 Subject: [PATCH] mediawiki: fix warning for tablePrefix on non-mysql databases The warning should trigger only when the database type is not `mysql`, but would currently trigger only if it is indeed `mysql`. --- nixos/modules/services/web-apps/mediawiki.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/web-apps/mediawiki.nix b/nixos/modules/services/web-apps/mediawiki.nix index af1dbcd223a7..b5a3e69209a6 100644 --- a/nixos/modules/services/web-apps/mediawiki.nix +++ b/nixos/modules/services/web-apps/mediawiki.nix @@ -616,7 +616,7 @@ in ++ lib.optional (cfg.database.type != "sqlite" && cfg.database.path != null) '' The services.mediawiki.database.path option will be ignored because services.mediawiki.database.type is not "sqlite". '' - ++ lib.optional (cfg.database.type == "mysql" && cfg.database.tablePrefix != null) '' + ++ lib.optional (cfg.database.type != "mysql" && cfg.database.tablePrefix != null) '' The services.mediawiki.database.tablePrefix option has no effect when the services.mediawiki.database.type is not "mysql". '';