44 lines
1.0 KiB
Nix
44 lines
1.0 KiB
Nix
{ config, lib, ... }: {
|
|
|
|
options.sysconfig.opts.virtualization.keycloak.enable = lib.options.mkOption {
|
|
type = lib.types.bool;
|
|
default = false;
|
|
};
|
|
|
|
config = lib.mkIf config.sysconfig.opts.virtualization.keycloak.enable {
|
|
|
|
containers.keycloak = {
|
|
|
|
autoStart = true;
|
|
privateNetwork = true;
|
|
hostAddress = "192.168.100.10";
|
|
localAddress = "192.168.100.22";
|
|
|
|
bindMounts = {
|
|
"/etc/keycloak" = {
|
|
hostPath = "/ssd1/Keycloak";
|
|
isReadOnly = false;
|
|
};
|
|
};
|
|
|
|
config = {
|
|
|
|
services.keycloak = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
hostname = "auth.blunkall.us";
|
|
|
|
http-enabled = true;
|
|
|
|
|
|
};
|
|
};
|
|
|
|
system.stateVersion = "25.05";
|
|
};
|
|
};
|
|
};
|
|
}
|