30 lines
474 B
Nix
30 lines
474 B
Nix
{ KeycloakService
|
|
}:
|
|
{ name
|
|
, configDir
|
|
, configFile
|
|
, user
|
|
, group
|
|
, postgresServiceName
|
|
, initialAdminUsername ? "admin"
|
|
, keys
|
|
|
|
, dependsOn ? {}
|
|
}:
|
|
{
|
|
inherit name configDir configFile;
|
|
|
|
inherit initialAdminUsername;
|
|
|
|
pkg = KeycloakService {
|
|
inherit configDir configFile;
|
|
inherit user group;
|
|
inherit keys initialAdminUsername;
|
|
inherit postgresServiceName;
|
|
};
|
|
|
|
systemdUnitFile = "${name}.service";
|
|
|
|
inherit dependsOn;
|
|
type = "systemd-unit";
|
|
}
|