Unverified Commit fbec0c0d authored by NotAShelf's avatar NotAShelf
Browse files

nixos/wakapi: fix failing assertions

parent c3ce64b1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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`