diff --git a/hosts/desktop/home.nix b/hosts/desktop/home.nix index eb58590..4ebd33d 100644 --- a/hosts/desktop/home.nix +++ b/hosts/desktop/home.nix @@ -31,6 +31,7 @@ streamlink streamlink-twitch-gui-bin element-desktop + nheko pulsemixer #yubioath-flutter nitrokey-app diff --git a/modules/services/server/matrix.nix b/modules/services/server/matrix.nix index 8549ac6..411b6e8 100644 --- a/modules/services/server/matrix.nix +++ b/modules/services/server/matrix.nix @@ -36,9 +36,19 @@ in { locations."/".extraConfig = '' return 404; ''; - locations."/_matrix".proxyPass = "http://[::1]:8008"; - locations."/_synapse/client".proxyPass = "http://[::1]:8008"; + locations."/_matrix".proxyPass = "http://127.0.0.1:8008"; + locations."/_synapse/client".proxyPass = "http://127.0.0.1:8008"; }; +# "element.${config.networking.domain}" = { +# enableACME = true; +# forceSSL = true; +# +# root = pkgs.element-web.override { +# conf = { +# default_server_config = clientConfig; +# }; +# }; +# }; }; }; @@ -46,16 +56,17 @@ in { enable = true; settings = { server_name = config.networking.domain; + public_baseurl = "https://matrix.${config.networking.domain}"; listeners = [ { port = 8008; - bind_addresses = [ "::1" ]; + bind_addresses = [ "::1" "127.0.0.1" ]; type = "http"; tls = false; x_forwarded = true; - resources = [ { - names = [ "client" "federation" ]; - compress = true; - } ]; + resources = [ + { names = [ "client" ]; compress = true; } + { names = [ "federation" ]; compress = false; } + ]; } ]; }; @@ -68,4 +79,10 @@ in { file = ../../../secrets/services/matrix/synapse.age; owner = "matrix-synapse"; }; + + systemd.services = { + matrix-synapse = { + requires = [ "postgresql.service" ]; + }; + }; }