diff options
author | makefu <github@syntax-fehler.de> | 2017-08-22 10:59:49 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2017-09-06 11:05:45 +0200 |
commit | 164e22ca5fec8c1221b01648afe58481abf34eb4 (patch) | |
tree | 2503a2a6e34175af2570f09b36f649bf1f1da37c | |
parent | 425b67daf151bef8a8a423e06cbc600e76d3bb80 (diff) |
newsbot-js module: add package option
this will be used for the wiki-irc-bot to override the patchPhase
-rw-r--r-- | krebs/3modules/newsbot-js.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/krebs/3modules/newsbot-js.nix b/krebs/3modules/newsbot-js.nix index 2ff9a5ebb..dd3e5647a 100644 --- a/krebs/3modules/newsbot-js.nix +++ b/krebs/3modules/newsbot-js.nix @@ -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"; }; }; }; |