1
0
Fork 0
selfhostblocks/postgresdb/mkdefault.nix

24 lines
398 B
Nix

{ PostgresDB
}:
{ name
, database
, username
, password ? null
, passwordFile ? null
, dependsOn ? {}
}:
{
inherit name;
inherit database username password passwordFile;
pkg = PostgresDB {
postgresDatabase = database;
postgresUsername = username;
postgresPassword = password;
postgresPasswordFile = passwordFile;
};
inherit dependsOn;
type = "postgresql-database";
}