modules/hebbot: make hebbot package configurable (#381695)
This commit is contained in:
@@ -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 = {
|
||||||
|
|||||||
Reference in New Issue
Block a user