nixos/tests/firefly-iii: Use postgres 16

This commit is contained in:
Savyasachee Jha 2024-06-15 19:01:08 +05:30
parent 3863fd9a6a
commit b9e13e3528

View File

@ -39,12 +39,13 @@ in
DB_DATABASE = "firefly";
DB_USERNAME = "firefly";
DB_PASSWORD_FILE = "/etc/postgres-pass";
PGSQL_SCHEMA = "firefly";
};
};
services.postgresql = {
enable = true;
package = pkgs.postgresql_15;
package = pkgs.postgresql_16;
authentication = ''
local all postgres peer
local firefly firefly password
@ -52,6 +53,7 @@ in
initialScript = pkgs.writeText "firefly-init.sql" ''
CREATE USER "firefly" WITH LOGIN PASSWORD '${db-pass}';
CREATE DATABASE "firefly" WITH OWNER "firefly";
\c firefly
CREATE SCHEMA AUTHORIZATION firefly;
'';
};