nixos/dendrite: add package option

This commit is contained in:
sinanmohd
2026-07-12 14:35:52 +05:30
parent 1b97280b9b
commit 6978920367
+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) [