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