about summary refs log tree commit diff
path: root/ops
diff options
context:
space:
mode:
Diffstat (limited to 'ops')
-rw-r--r--ops/nixos/panettone.nix20
-rw-r--r--ops/nixos/whitby/default.nix1
2 files changed, 21 insertions, 0 deletions
diff --git a/ops/nixos/panettone.nix b/ops/nixos/panettone.nix
index 15ef2fbb2dae..50826743577d 100644
--- a/ops/nixos/panettone.nix
+++ b/ops/nixos/panettone.nix
@@ -38,6 +38,23 @@ in {
       '';
       type = types.str;
     };
+
+    irccatHost = mkOption {
+      description = "Hostname for the irccat instance";
+      type = types.str;
+      default = "localhost";
+    };
+
+    irccatPort = mkOption {
+      description = "Port for the irccat instance";
+      type = types.int;
+      default = 4722;
+    };
+
+    irccatChannel = mkOption {
+      description = "IRC channels to post to via irccat";
+      type = types.str;
+    };
   };
 
   config = lib.mkIf cfg.enable {
@@ -78,6 +95,9 @@ in {
         PGHOST = "localhost";
         PGUSER = cfg.dbUser;
         PGDATABASE = cfg.dbName;
+        IRCCATHOST = cfg.irccatHost;
+        IRCCATPORT = toString cfg.irccatPort;
+        ISSUECHANNEL = cfg.irccatChannel;
       };
     };
   };
diff --git a/ops/nixos/whitby/default.nix b/ops/nixos/whitby/default.nix
index 1ed2d3ce06ae..e12d6341d8ca 100644
--- a/ops/nixos/whitby/default.nix
+++ b/ops/nixos/whitby/default.nix
@@ -236,6 +236,7 @@ in lib.fix(self: {
       dbUser = "panettone";
       dbName = "panettone";
       secretsFile = "/etc/secrets/panettone";
+      irccatChannel = "##tvl,##tvl-dev";
     };
 
     # Run the first cursed bot (quote bot)