forked from wurzel/fruitbasket
add basic keycloak config
This commit is contained in:
parent
bea16d0652
commit
6525c45ca2
4 changed files with 121 additions and 7 deletions
34
modules/keycloak.nix
Normal file
34
modules/keycloak.nix
Normal file
|
@ -0,0 +1,34 @@
|
|||
{pkgs, conifg, lib}: {
|
||||
|
||||
sops.secrets.postgres_keycloak.owner = config.systemd.services.keycloak.serviceConfig.User;
|
||||
|
||||
services = {
|
||||
keycloak = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
hostname = "keycloak.durian.tassilo-tanneberger.de";
|
||||
};
|
||||
|
||||
database = {
|
||||
username = "keycloak";
|
||||
type = "postgresql";
|
||||
passwordFile = ;
|
||||
name = "keycloak";
|
||||
host = "localhost";
|
||||
};
|
||||
};
|
||||
postgresql = {
|
||||
enable = true;
|
||||
ensureUsers = [
|
||||
{
|
||||
name = "keycloak";
|
||||
ensurePermissions = {
|
||||
"DATABASE keycloak" = "ALL PRIVILEGES";
|
||||
};
|
||||
}
|
||||
];
|
||||
ensureDatabases = [ "keycloak" ];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue