From febb509b10b7e8408a7e4fcc350178d8b741406f Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Thu, 4 Apr 2024 21:43:26 +0200 Subject: [PATCH] update terranix matrix --- nixos/machines/orbi/social-matrix-terranix.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nixos/machines/orbi/social-matrix-terranix.nix b/nixos/machines/orbi/social-matrix-terranix.nix index 5459dda..78789a7 100644 --- a/nixos/machines/orbi/social-matrix-terranix.nix +++ b/nixos/machines/orbi/social-matrix-terranix.nix @@ -4,13 +4,14 @@ let # 2. test with : https://federationtester.matrix.org/#terranix.org # 3. info at : https://silvio.github.io/docker-matrix/Example.configs.html + name = "terranix"; domain = "terranix.org"; baseUrl = "https://matrix.${domain}"; synapse_port = 8008; federation_port = 8448; - matrix_create_user = pkgs.writers.writeBashBin "matrix-create-user-${domain}" '' + matrix_create_user = pkgs.writers.writeBashBin "matrix-create-user-${name}" '' ${pkgs.matrix-synapse}/bin/register_new_matrix_user \ -k $( ${pkgs.gojq}/bin/gojq \ --yaml-input \ @@ -55,8 +56,7 @@ in }; users.groups.matrix-synapse.gid = config.ids.gids.matrix-synapse; - # todo : mount postgresql folder in a dedicated zfs pool - containers.matrix-terranix = { + containers."matrix-${name}" = { autoStart = true; privateNetwork = false;