diff options
author | makefu <github@syntax-fehler.de> | 2017-08-22 10:59:49 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2017-08-22 11:00:26 +0200 |
commit | 84646ba41595e3410fdd38b9d27312b33d4474f7 (patch) | |
tree | df8cd165c4b6ab73ee8fc5c2c705ef0e50126c5c | |
parent | 589b5fa8bde55032779541020a4b4dd520d01db8 (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"; }; }; }; |