nixos/dendrite: add package option (#540989)

This commit is contained in:
Oleksii Filonenko
2026-07-13 00:40:21 +00:00
committed by GitHub
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -13,6 +13,7 @@ in
{
options.services.dendrite = {
enable = lib.mkEnableOption "matrix.org dendrite";
package = lib.mkPackageOption pkgs "dendrite" { };
httpPort = lib.mkOption {
type = lib.types.nullOr lib.types.port;
default = 8008;
@@ -321,7 +322,7 @@ in
];
ExecStart = lib.strings.concatStringsSep " " (
[
"${pkgs.dendrite}/bin/dendrite"
(lib.getExe cfg.package)
"--config /run/dendrite/dendrite.yaml"
]
++ lib.optionals (cfg.httpPort != null) [
+1
View File
@@ -67,6 +67,7 @@ buildGoModule (finalAttrs: {
meta = {
homepage = "https://element-hq.github.io/dendrite";
mainProgram = "dendrite";
description = "Second-generation Matrix homeserver written in Go";
changelog = "https://github.com/element-hq/dendrite/releases/tag/v${finalAttrs.version}";
license = lib.licenses.agpl3Plus;