From ccadb02ea640c8d7a45d0c4ec3725739634a5c75 Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Mon, 30 Oct 2023 09:36:08 +0100 Subject: [PATCH] keycloak: Add keywind theme --- modules/keycloak/default.nix | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) 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 = {