diff options
author | lassulus <lass@lassul.us> | 2017-01-21 22:08:12 +0100 |
---|---|---|
committer | lassulus <lass@lassul.us> | 2017-01-21 22:08:12 +0100 |
commit | fc9dbd78356cc4af53f1b3cc48e9025a44f4f764 (patch) | |
tree | 5ae38d5dd0efad01f4416682966d808cecad32bb /lass/1systems | |
parent | 94631f688c8e7418f4f0a06c70e06b203e43bd5f (diff) |
l 1 prism: add #coders Reaktor config
Diffstat (limited to 'lass/1systems')
-rw-r--r-- | lass/1systems/prism.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/lass/1systems/prism.nix b/lass/1systems/prism.nix index 34d81f099..6d5a7c965 100644 --- a/lass/1systems/prism.nix +++ b/lass/1systems/prism.nix @@ -259,6 +259,49 @@ in { { v6 = false; precedence = 1000; predicate = "-d 192.168.122.24 -p tcp --dport 22 -m state --state NEW,ESTABLISHED,RELATED"; target = "ACCEPT"; } ]; } + { + krebs.Reaktor.coders = { + nickname = "reaktor-lass"; + channels = [ "#coders" ]; + extraEnviron = { + REAKTOR_HOST = "irc.hackint.org"; + }; + plugins = with pkgs.ReaktorPlugins; [ + sed-plugin + url-title + (buildSimpleReaktorPlugin "lambdabot-pl" { + pattern = "^@pl(?P<args>.*)$$"; + script = pkgs.writeDash "lambda-pl" '' + exec ${pkgs.lambdabot}/bin/lambdabot -e "@pl $1" + ''; + }) + (buildSimpleReaktorPlugin "lambdabot-type" { + pattern = "^@type(?P<args>.*)$$"; + script = pkgs.writeDash "lambda-type" '' + exec ${pkgs.lambdabot}/bin/lambdabot -e "@type $1" + ''; + }) + (buildSimpleReaktorPlugin "lambdabot-let" { + pattern = "^@let(?P<args>.*)$$"; + script = pkgs.writeDash "lambda-let" '' + exec ${pkgs.lambdabot}/bin/lambdabot -e "@let $1" + ''; + }) + (buildSimpleReaktorPlugin "lambdabot-run" { + pattern = "^@run(?P<args>.*)$$"; + script = pkgs.writeDash "lambda-run" '' + exec ${pkgs.lambdabot}/bin/lambdabot -e "@run $1" + ''; + }) + (buildSimpleReaktorPlugin "lambdabot-kind" { + pattern = "^@kind(?P<args>.*)$$"; + script = pkgs.writeDash "lambda-kind" '' + exec ${pkgs.lambdabot}/bin/lambdabot -e "@kind $1" + ''; + }) + ]; + }; + } ]; krebs.build.host = config.krebs.hosts.prism; |