keycloak: Add keywind theme

This commit is contained in:
Erwin Boskma 2023-10-30 09:36:08 +01:00
parent c1e598e12e
commit ccadb02ea6
Signed by: erwin
SSH key fingerprint: SHA256:3F6Cm6I3erRqlBwEghZWAQl6eS5WrGTX1Vs/Evec1lQ

View file

@ -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 = {