1
0
Fork 0
selfhostblocks/postgresdb/mkdefault.nix

25 lines
398 B
Nix
Raw Normal View History

2022-10-04 09:08:51 +02:00
{ PostgresDB
}:
{ name
, database
, username
, password ? null
, passwordFile ? null
2022-10-04 09:08:51 +02:00
, dependsOn ? {}
}:
{
inherit name;
inherit database username password passwordFile;
2022-10-04 09:08:51 +02:00
pkg = PostgresDB {
postgresDatabase = database;
2022-10-04 09:08:51 +02:00
postgresUsername = username;
postgresPassword = password;
postgresPasswordFile = passwordFile;
2022-10-04 09:08:51 +02:00
};
inherit dependsOn;
type = "postgresql-database";
}