From 56aa491ad7923a3b2113117ceb99465641bf6905 Mon Sep 17 00:00:00 2001 From: scaroo Date: Sat, 9 Mar 2019 17:11:15 +0100 Subject: [PATCH] zonminder: Fix database name and username PR #56889 messed up db and use naming while fixing the scope of the initialDatabases property. This patch fixes the issue. --- nixos/modules/services/misc/zoneminder.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/misc/zoneminder.nix b/nixos/modules/services/misc/zoneminder.nix index 04ddd3ca183a23..2bd2f3c7cc08ad 100644 --- a/nixos/modules/services/misc/zoneminder.nix +++ b/nixos/modules/services/misc/zoneminder.nix @@ -49,8 +49,8 @@ let # Database ZM_DB_TYPE=mysql ZM_DB_HOST=${cfg.database.host} - ZM_DB_NAME=${if cfg.database.createLocally then user else cfg.database.username} - ZM_DB_USER=${cfg.database.username} + ZM_DB_NAME=${cfg.database.name} + ZM_DB_USER=${if cfg.database.createLocally then user else cfg.database.username} ZM_DB_PASS=${cfg.database.password} # Web