1
0
Fork 0
selfhostblocks/keycloak/mkunit.nix

31 lines
474 B
Nix
Raw Normal View History

2022-10-09 08:52:41 +02:00
{ KeycloakService
}:
{ name
, configDir
, configFile
, user
, group
, postgresServiceName
, initialAdminUsername ? "admin"
, keys
2022-10-09 08:52:41 +02:00
, dependsOn ? {}
}:
{
inherit name configDir configFile;
inherit initialAdminUsername;
2022-10-09 08:52:41 +02:00
pkg = KeycloakService {
inherit configDir configFile;
inherit user group;
inherit keys initialAdminUsername;
2022-10-09 08:52:41 +02:00
inherit postgresServiceName;
};
2022-12-18 06:38:22 +01:00
systemdUnitFile = "${name}.service";
2022-10-09 08:52:41 +02:00
inherit dependsOn;
type = "systemd-unit";
}