summaryrefslogtreecommitdiffstats
path: root/krebs/2configs/reaktor-krebs.nix
blob: dc2838cae7e6e81baedee492e4b6c2c5224a07ca (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
28
29
30
{ config, lib, pkgs, ... }:
with import <stockholm/lib>;

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