1
0
Fork 0
selfhostblocks/keycloak/mkunit.nix
2023-02-19 20:37:52 -08:00

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";
}