diff --git a/modules/keycloak/default.nix b/modules/keycloak/default.nix index c7e568a..d8e4852 100644 --- a/modules/keycloak/default.nix +++ b/modules/keycloak/default.nix @@ -1,7 +1,29 @@ -{ config, lib, ... }: +{ pkgs, config, lib, ... }: with lib; let cfg = config.eboskma.keycloak; + + keywindTheme = pkgs.stdenv.mkDerivation { + pname = "keycloak-theme-keywind"; + version = "unstable-2023-10-22"; + + src = pkgs.fetchFromGitHub { + owner = "lukin"; + repo = "keywind"; + rev = "b1c47673ae091bc1a85a04434f2929ba5b8fa8bf"; + hash = "sha256-Y88L7oW127Fex2D33A0tMnaJtSvM7hFZkzuVXZYoBhQ="; + }; + + doConfigure = false; + doBuild = false; + doCheck = false; + + installPhase = '' + mkdir $out + cp -r $src/theme/keywind/* $out/ + ''; + + }; in { options.eboskma.keycloak = { enable = mkEnableOption "keycloak"; }; @@ -17,6 +39,11 @@ in http-port = 8081; proxy = "edge"; }; + + themes = { + keywind = keywindTheme; + }; + }; services.caddy = {