toJSON gives a string, not a file

This commit is contained in:
niten 2023-09-12 15:58:57 -07:00
parent 90e6e1fe25
commit 8127318298
1 changed files with 2 additions and 2 deletions

View File

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