2022-10-09 08:52:41 +02:00
|
|
|
{ KeycloakService
|
|
|
|
}:
|
|
|
|
{ name
|
|
|
|
, configDir
|
|
|
|
, configFile
|
|
|
|
, user
|
|
|
|
, group
|
|
|
|
, dbPasswordFile
|
|
|
|
, postgresServiceName
|
2022-10-15 07:06:37 +02:00
|
|
|
, initialAdminUsername ? "admin"
|
2022-10-09 08:52:41 +02:00
|
|
|
, initialAdminFile ? null
|
|
|
|
|
|
|
|
, dependsOn ? {}
|
|
|
|
}:
|
|
|
|
{
|
|
|
|
inherit name configDir configFile;
|
|
|
|
|
2022-10-15 07:06:37 +02:00
|
|
|
inherit initialAdminUsername;
|
|
|
|
|
2022-10-09 08:52:41 +02:00
|
|
|
pkg = KeycloakService {
|
|
|
|
inherit configDir configFile;
|
|
|
|
inherit user group;
|
2022-10-15 07:06:37 +02:00
|
|
|
inherit dbPasswordFile initialAdminUsername initialAdminFile;
|
2022-10-09 08:52:41 +02:00
|
|
|
inherit postgresServiceName;
|
|
|
|
};
|
|
|
|
|
|
|
|
inherit dependsOn;
|
|
|
|
type = "systemd-unit";
|
|
|
|
}
|