diff --git a/home/.chezmoitemplates/secrets/MATRIX_ROOM_ID b/home/.chezmoitemplates/secrets/MATRIX_ROOM_ID new file mode 100644 index 00000000..9da08815 --- /dev/null +++ b/home/.chezmoitemplates/secrets/MATRIX_ROOM_ID @@ -0,0 +1,7 @@ +-----BEGIN AGE ENCRYPTED FILE----- +YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSB0dU5JdFllajBnbFNsd0o0 +NjlBL1NNUjg3M0ZkQjZhWW5VQVA2OXJRK0I0CjY0WnZPYmpNREdSNmpaaWtFMVEv +dW5WcWVqU2ZFVzRxV28rWXpVNGVSbW8KLS0tIENmTzJnclc2cDFuWGhtMnVqWmcz +bjQwTDBQMEVGTTRCQWNrVEdOVFROVGMKE011SxlmrtfuwS/NK46EpJcZmVpvs06M +GQZZx/dpGp9ASmapfASUS8xHRY8AaA== +-----END AGE ENCRYPTED FILE----- \ No newline at end of file diff --git a/home/dot_config/nfty/private_nfty.yml.tmpl b/home/dot_config/nfty/private_nfty.yml.tmpl index 6ddf54b3..32b02de6 100644 --- a/home/dot_config/nfty/private_nfty.yml.tmpl +++ b/home/dot_config/nfty/private_nfty.yml.tmpl @@ -31,8 +31,8 @@ linux: # 1 - system default, 0 - never expire timeout: 0 matrix: - url: matrix.org - roomId: install.doctor + url: {{ if (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "MATRIX_HOMESERVER")) }}{{- includeTemplate "secrets/MATRIX_HOMESERVER" | decrypt | trim -}}{{ else }}{{- env "MATRIX_HOMESERVER" -}}{{ end }} + roomId: {{ if (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "MATRIX_ROOM_ID")) }}{{- includeTemplate "secrets/MATRIX_ROOM_ID" | decrypt | trim -}}{{ else }}{{- env "MATRIX_ROOM_ID" -}}{{ end }} userId: {{ if (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "MATRIX_USERNAME")) }}{{- includeTemplate "secrets/MATRIX_USERNAME" | decrypt | trim -}}{{ else }}{{- env "MATRIX_USERNAME" -}}{{ end }} password: {{ if (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "MATRIX_PASSWORD")) }}{{- includeTemplate "secrets/MATRIX_PASSWORD" | decrypt | trim -}}{{ else }}{{- env "MATRIX_PASSWORD" -}}{{ end }} notifico: