From 81273182980b55a894862db9965ecf58aec91eee Mon Sep 17 00:00:00 2001 From: niten Date: Tue, 12 Sep 2023 15:58:57 -0700 Subject: [PATCH] toJSON gives a string, not a file --- matrix-module.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matrix-module.nix b/matrix-module.nix index b99d0dd..9116f09 100644 --- a/matrix-module.nix +++ b/matrix-module.nix @@ -8,7 +8,7 @@ let hostSecrets = config.fudo.secrets.host-secrets."${hostname}"; - openIdConfig = builtins.toJSON "matrix-openid.yaml" { + openIdConfig = pkgs.writeText "matrix-openid.yaml" (builtins.toJSON { oidc_providers = [{ idp_id = cfg.openid.provider; idp_name = cfg.openid.provider; @@ -22,7 +22,7 @@ let display_name_template = "{{ user.name | capitalize }}"; }; }]; - }; + }); in { options.fudo.services.matrix = with types; {