newsbot-js module: add package option

this will be used for the wiki-irc-bot to override the patchPhase
This commit is contained in:
makefu 2017-08-22 10:59:49 +02:00 committed by lassulus
parent 425b67daf1
commit 164e22ca5f

View File

@ -13,6 +13,11 @@ let
api = {
enable = mkEnableOption "Enable krebs newsbot";
package = mkOption {
type = types.package;
default = pkgs.newsbot-js;
description = "newsbot package to use";
};
ircServer = mkOption {
type = types.str;
default = "echelon.retiolum";
@ -79,7 +84,7 @@ let
serviceConfig = {
User = "newsbot-js";
Restart = "always";
ExecStart = "${pkgs.newsbot-js}/bin/newsbot";
ExecStart = "${cfg.package}/bin/newsbot";
};
};
};