From 6b03b4a545c8faf63286a717e84e7dcade89e8a6 Mon Sep 17 00:00:00 2001 From: niten Date: Wed, 13 Sep 2023 11:04:47 -0700 Subject: [PATCH] Allow different id/name --- matrix-module.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/matrix-module.nix b/matrix-module.nix index ab00ff3..1954a5f 100644 --- a/matrix-module.nix +++ b/matrix-module.nix @@ -11,7 +11,7 @@ let openIdConfig = pkgs.writeText "matrix-openid.yaml" (builtins.toJSON { oidc_providers = [{ idp_id = cfg.openid.provider; - idp_name = cfg.openid.provider; + idp_name = cfg.openid.provider-name; discover = true; issuer = cfg.openid.issuer; client_id = cfg.openid.client-id; @@ -60,6 +60,11 @@ in { openid = { provider = mkOption { + type = str; + description = "Name/ID of the authentication provider."; + }; + + provider-name = mkOption { type = str; description = "Name of the authentication provider."; };