From 697892036759f011d4fcb8dbddf75de53f52dfb6 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Sun, 12 Jul 2026 14:32:56 +0530 Subject: [PATCH] nixos/dendrite: add package option --- nixos/modules/services/matrix/dendrite.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/matrix/dendrite.nix b/nixos/modules/services/matrix/dendrite.nix index 4a55c30c839b..671c3821da4d 100644 --- a/nixos/modules/services/matrix/dendrite.nix +++ b/nixos/modules/services/matrix/dendrite.nix @@ -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) [