diff --git a/flake.lock b/flake.lock index b951090d..30cb5a95 100644 --- a/flake.lock +++ b/flake.lock @@ -7,11 +7,11 @@ ] }, "locked": { - "lastModified": 1646297700, - "narHash": "sha256-LJxdzpM2rhjnrF3A0Yx7yTRvcYFpvmESz2RqLc4gGxA=", + "lastModified": 1646639428, + "narHash": "sha256-aNVJCRF+dOxe1sqlY4aL5O50SjG8tHp4MTZV6AxIMOs=", "owner": "accentor", "repo": "flake", - "rev": "20ca5d132cce637d8630fdfd02e6a8eaad40e12e", + "rev": "b48a4e7d81b9026691615643ba4a17f158da3cf1", "type": "github" }, "original": { @@ -58,11 +58,11 @@ }, "emacs-overlay": { "locked": { - "lastModified": 1646618851, - "narHash": "sha256-LvXKcS1ItRoOLhY/trvG3DqC1O8HipwdLVcu6OUhRFk=", + "lastModified": 1646673112, + "narHash": "sha256-oA0qEgaLd+HcZZ6YVcXIubupl2dVhf5lKtgxVrUul24=", "owner": "nix-community", "repo": "emacs-overlay", - "rev": "1df96ae1607647923a32084df71c6ad42c81135b", + "rev": "803766a96cadfacf822f9312bedba4fa5f9dc2eb", "type": "github" }, "original": { @@ -130,11 +130,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1646254136, - "narHash": "sha256-8nQx02tTzgYO21BP/dy5BCRopE8OwE8Drsw98j+Qoaw=", + "lastModified": 1646497237, + "narHash": "sha256-Ccpot1h/rV8MgcngDp5OrdmLTMaUTbStZTR5/sI7zW0=", "owner": "nixos", "repo": "nixpkgs", - "rev": "3e072546ea98db00c2364b81491b893673267827", + "rev": "062a0c5437b68f950b081bbfc8a699d57a4ee026", "type": "github" }, "original": { @@ -146,11 +146,11 @@ }, "nur": { "locked": { - "lastModified": 1646626019, - "narHash": "sha256-5hYr509v+oB2rmf95Y/wZcL6KdZy04xc4gUgre+QaWM=", + "lastModified": 1646675036, + "narHash": "sha256-HdYLSK2a8DJdo5qNnQuE7RZ8bCvtSsAy5rO7jONG1hM=", "owner": "nix-community", "repo": "NUR", - "rev": "e9a708815b3dd2e2f891c4d5812e232efd900950", + "rev": "5666e0baa5341fceaeb24b74892d2479d9c2363a", "type": "github" }, "original": { @@ -179,11 +179,11 @@ ] }, "locked": { - "lastModified": 1646300275, - "narHash": "sha256-s7LOKfof6Ei89omQCX7E2LJkyU5nj/GVvM3HFJ2BcYI=", + "lastModified": 1646638584, + "narHash": "sha256-7mdbcKNtakb51ExqX8dfs5rD29faUVkjpbzFOtcLsAk=", "owner": "chvp", "repo": "tetris", - "rev": "4ac429b3909bd03bce9583506600ae422c4de69f", + "rev": "7cc6d3a017f0a4e65c67843b989419548a9c5b16", "type": "github" }, "original": { diff --git a/modules/services/matrix/default.nix b/modules/services/matrix/default.nix index 115265af..21cf5d42 100644 --- a/modules/services/matrix/default.nix +++ b/modules/services/matrix/default.nix @@ -30,28 +30,30 @@ services = { matrix-synapse = { enable = true; - server_name = "vanpetegem.me"; - public_baseurl = "https://matrix.vanpetegem.me"; - listeners = [{ - port = 8448; - bind_address = "localhost"; - type = "http"; - tls = false; - x_forwarded = true; - resources = [ - { names = [ "client" ]; compress = true; } - { names = [ "federation" ]; compress = false; } + settings = { + server_name = "vanpetegem.me"; + public_baseurl = "https://matrix.vanpetegem.me"; + listeners = [{ + port = 8448; + bind_addresses = [ "::1" "127.0.0.1" ]; + type = "http"; + tls = false; + x_forwarded = true; + resources = [ + { names = [ "client" ]; compress = true; } + { names = [ "federation" ]; compress = false; } + ]; + }]; + url_preview_enabled = true; + enable_metrics = false; + enable_registration = false; + report_stats = false; + allow_guest_access = false; + app_service_config_files = [ + config.age.secrets."files/services/matrix-synapse/whatsapp-registration.yml".path + config.age.secrets."files/services/matrix-synapse/slack-registration.yml".path ]; - }]; - url_preview_enabled = true; - enable_metrics = false; - enable_registration = false; - report_stats = false; - allow_guest_access = false; - app_service_config_files = [ - config.age.secrets."files/services/matrix-synapse/whatsapp-registration.yml".path - config.age.secrets."files/services/matrix-synapse/slack-registration.yml".path - ]; + }; extraConfigFiles = [ config.age.secrets."files/services/matrix-synapse/config.yml".path ];