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

30 lines
561 B
Nix

{ KeycloakConfig
}:
{ name
, configDir ? "/etc/keycloak"
, configFile ? "keycloak.conf"
, logLevel ? "INFO"
, metricsEnabled ? false
, hostname ? "keycloak.hostname.com"
, dbType ? "postgres"
, dbUsername ? "keycloak"
, dbHost ? x: "localhost"
, dbPort ? "5432"
, dbDatabase ? "keycloak"
, dependsOn ? {}
}:
{
inherit name configDir configFile;
pkg = KeycloakConfig {
inherit configDir configFile hostname;
inherit logLevel metricsEnabled;
inherit dbType dbUsername dbHost dbPort dbDatabase;
};
inherit dependsOn;
type = "fileset";
}