wynne: dendrite - override dendrite version

untill https://github.com/NixOS/nixpkgs/pull/341922 is merged
This commit is contained in:
Adithya 2024-09-17 22:44:04 +05:30
parent 382e7efa4b
commit 31eb4ce2d5
Signed by: adtya
GPG key ID: B8857BFBA2C47B9C

View file

@ -50,7 +50,20 @@ in
environmentFile = config.sops.secrets."matrix/syncv3_secret".path;
};
};
systemd.services.dendrite = {
systemd.services.dendrite =
let
dendrite_package = pkgs.dendrite.overrideAttrs rec {
version = "0.13.8";
src = pkgs.fetchFromGitHub {
owner = "matrix-org";
repo = "dendrite";
rev = "v${version}";
hash = "sha256-zUpZdG2cdZ95L70qLG2HaUlD+G66XTi4f1V4+ZZAh30=";
};
vendorHash = "sha256-rGOB1ikY3BgChvD1YZUF66g8P6gE29b/k9kxvHR0+WQ=";
};
in
{
description = "Dendrite Matrix homeserver";
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
@ -65,7 +78,7 @@ in
RuntimeDirectoryMode = "0700";
LimitNOFILE = 65535;
ExecStart = ''
${pkgs.dendrite}/bin/dendrite -http-bind-address 127.0.0.1:8008 -config ${./config.yaml}
${dendrite_package}/bin/dendrite -http-bind-address 127.0.0.1:8008 -config ${./config.yaml}
'';
ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
Restart = "on-failure";