about summary refs log tree commit diff
path: root/users/sterni/machines/ingeborg/irccat.nix
diff options
context:
space:
mode:
authorsterni <sternenseemann@systemli.org>2023-11-30T16·26+0100
committersterni <sternenseemann@systemli.org>2023-11-30T21·21+0000
commit60ca9ba43715028b3bfb5c64c0b12dbf2a8ee5a4 (patch)
tree08caafa53d2acc32025e03d940648134c7e20790 /users/sterni/machines/ingeborg/irccat.nix
parentc6c1c9f8fc80ef5c92c44ee72e329a55fb26f7e5 (diff)
feat(sterni/ingeborg): set up monitoring via netdata r/7094
Main objective was to get SMART/md monitoring working, alerts go (via
some awful glue code) to #sterni.lv on hackint. Bot nick should also be
registered in the future.

Change-Id: Ia73c5a64ee9f6df62f5fbe21fc1606477e3d6e73
Reviewed-on: https://cl.tvl.fyi/c/depot/+/10174
Reviewed-by: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/sterni/machines/ingeborg/irccat.nix')
-rw-r--r--users/sterni/machines/ingeborg/irccat.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/users/sterni/machines/ingeborg/irccat.nix b/users/sterni/machines/ingeborg/irccat.nix
new file mode 100644
index 000000000000..0c40f15e33a4
--- /dev/null
+++ b/users/sterni/machines/ingeborg/irccat.nix
@@ -0,0 +1,23 @@
+{ depot, config, pkgs, lib, ... }:
+
+{
+  imports = [
+    (depot.path.origSrc + "/ops/modules/irccat.nix")
+  ];
+
+  config = {
+    services.depot.irccat = {
+      enable = true;
+      secretsFile = builtins.toFile "empty.json" "{}"; # TODO(sterni): register
+      config = {
+        tcp.listen = ":4722"; # ircc
+        irc = {
+          server = "irc.hackint.org:6697";
+          tls = true;
+          nick = config.networking.hostName;
+          realname = "irccat";
+        };
+      };
+    };
+  };
+}