matrix: fix elementx calls

Applies patch from: https://forgejo.ellis.link/continuwuation/continuwuity/pulls/1370
That I am working on. Also updates version to latest (at this time) git
This commit is contained in:
2026-02-13 15:25:26 -05:00
parent f5abfd5bf6
commit c01b2336a7
2 changed files with 119 additions and 0 deletions

View File

@@ -1,9 +1,34 @@
{
config,
pkgs,
service_configs,
lib,
...
}:
let
package =
let
src = pkgs.fetchFromGitea {
domain = "forgejo.ellis.link";
owner = "continuwuation";
repo = "continuwuity";
rev = "89ad809270dc0dbf428858a466aa9b90e9a8dccf";
hash = "sha256-fXLbuCkRGYljWXbCyDvczezZ3Zo8SCPh5sx1gZChccw=";
};
in
pkgs.matrix-continuwuity.overrideAttrs (old: {
inherit src;
cargoDeps = pkgs.rustPlatform.fetchCargoVendor {
inherit src;
name = "${old.pname}-vendor";
hash = "sha256-cRdjFCxk9oYKyAOB+OaFGZzpWnyKgkdz5d5XXM/QzD4=";
};
patches = (old.patches or [ ]) ++ [
./sliding-sync-fix.patch
];
});
in
{
imports = [
(lib.serviceMountWithZpool "continuwuity" service_configs.zpool_ssds [
@@ -16,6 +41,7 @@
services.matrix-continuwuity = {
enable = true;
inherit package;
settings.global = {
port = [ service_configs.ports.matrix ];