modules/hebbot: make hebbot package configurable (#381695)

This commit is contained in:
Jörg Thalheim
2025-02-15 21:40:17 +07:00
committed by GitHub

View File

@@ -20,6 +20,7 @@ in
meta.maintainers = [ lib.maintainers.raitobezarius ];
options.services.hebbot = {
enable = mkEnableOption "hebbot";
package = lib.mkPackageOption pkgs "hebbot" {};
botPasswordFile = mkOption {
type = types.path;
description = ''
@@ -61,7 +62,7 @@ in
script = ''
export BOT_PASSWORD="$(cat $CREDENTIALS_DIRECTORY/bot-password-file)"
${lib.getExe pkgs.hebbot}
${lib.getExe cfg.package}
'';
serviceConfig = {