From fbec0c0d7fa8fcb7864bd598f14014c168cd5693 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Tue, 22 Oct 2024 12:05:02 +0300 Subject: [PATCH] nixos/wakapi: fix failing assertions --- nixos/modules/services/web-apps/wakapi.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/web-apps/wakapi.nix b/nixos/modules/services/web-apps/wakapi.nix index 522c815e3ae3..de6ffaac54cf 100644 --- a/nixos/modules/services/web-apps/wakapi.nix +++ b/nixos/modules/services/web-apps/wakapi.nix @@ -190,13 +190,13 @@ in message = "Both `services.wakapi.smtpPassword` `services.wakapi.smtpPasswordFile` should not be set at the same time."; } { - assertion = cfg.db.createLocally -> cfg.db.dialect != null; + assertion = cfg.database.createLocally -> cfg.settings.db.dialect != null; message = "`services.wakapi.database.createLocally` is true, but a database dialect is not set!"; } ]; warnings = [ - (lib.optionalString (cfg.db.createLocally -> cfg.db.dialect != "postgres") '' + (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". The Wakapi module only supports for PostgreSQL. Please set `services.wakapi.database.createLocally`