diff options
author | lassulus <lass@aidsballs.de> | 2015-12-30 17:16:05 +0100 |
---|---|---|
committer | lassulus <lass@aidsballs.de> | 2015-12-30 17:16:05 +0100 |
commit | 9b890750e24f43182ebf1732871a60d9e0c74c89 (patch) | |
tree | 4b3edf06c425b74d6209a3ea08d6ef1b48c2f15a /krebs/3modules/Reaktor.nix | |
parent | f16742895c26b0f3df71ca8503afc5f4cb97a9ae (diff) | |
parent | c625c7d422d5bfe6b4cdbafc6dd9eb0253673776 (diff) |
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'krebs/3modules/Reaktor.nix')
-rw-r--r-- | krebs/3modules/Reaktor.nix | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/krebs/3modules/Reaktor.nix b/krebs/3modules/Reaktor.nix index 607eb7cac..92400139c 100644 --- a/krebs/3modules/Reaktor.nix +++ b/krebs/3modules/Reaktor.nix @@ -70,12 +70,17 @@ let REAKTOR_HOST REAKTOR_PORT REAKTOR_STATEDIR - REAKTOR_CHANNELS debug and nickname can be set separately via the Reaktor api ''; }; - + channels = mkOption { + default = [ "#krebs" ]; + type = types.listOf types.str; + description = '' + Channels the Reaktor should connect to at startup. + ''; + }; debug = mkOption { default = false; description = '' @@ -112,7 +117,9 @@ let GIT_SSL_CAINFO = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"; REAKTOR_NICKNAME = cfg.nickname; REAKTOR_DEBUG = (if cfg.debug then "True" else "False"); + REAKTOR_CHANNELS = lib.concatStringsSep "," cfg.channels; state_dir = cfg.workdir; + } // cfg.extraEnviron; serviceConfig= { ExecStartPre = pkgs.writeScript "Reaktor-init" '' |