1
0
Fork 0
selfhostblocks/keycloak/mkunit.nix

30 lines
497 B
Nix
Raw Normal View History

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