summaryrefslogtreecommitdiffstats
path: root/krebs/2configs/reaktor-krebs.nix
blob: 67ca23ecd82c366ef590b548d7879ae2a87f554b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ config, lib, pkgs, ... }:
with import <stockholm/lib>;

{
  krebs.Reaktor.krebs = {
    nickname = "Reaktor|krebs";
    channels = [
      "#krebs"
      "#nixos-wiki"
      "#nixos-de"
    ];
    extraEnviron = {
      REAKTOR_HOST = "irc.freenode.org";
      REAKTOR_NICKSERV_PASSWORD = "/var/lib/Reaktor/reaktor_nickserv_password";
    };
    plugins = with pkgs.ReaktorPlugins; [
      sed-plugin
    ] ++
      (attrValues (task "agenda"))
    ;
  };
  krebs.secret.files.nix-serve-key = {
    path = "/var/lib/Reaktor/reaktor_nickserv_password";
    owner.name = "Reaktor";
    source-path = toString <secrets> + "/reaktor_nickserv_password";
  };
}