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
parent 589b5fa8bd
commit 84646ba415
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225

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";
};
};
};