IRC Client

Written by Alex, .

We’ve added an IRC client to Tardis! You can access it here, login is simply your Tardis username and password. By default it will give you the server config to join the CompSoc IRC Server. Below is some more technical detail for those interested.

What?

IRC is a system for text-based chat that was particularly popular in the 90s. It inspired more modern systems like Slack, IRC, Teams, etc with different channels, slash commands, separate moderator roles, etc. For various reasons some people still prefer to use IRC to communicate, and there are a few active servers still going.

IRC follows a client-server model, with many many different client implementations available. We’ve opted to host a web-app based client called TheLounge since it seemed relatively modern, had an available Nix package and provides an inbuilt bouncer (which means you can receive messages without having to be actively connected to the server)

Why?

Mostly because why not. CompSoc also still has an IRC server that the Discord server is bridged to, so it was also an excuse to explore that side of things. I also took it as an opportunity to learn about using Nix.

How?

Like many of our core services, our IRC client was deployed as a Nix package. This meant deployment was as simple as:

  1. Finding the package on https://search.nixos.org/packages
  2. Figuring out how the Nix config mapped to the config described in the docs
  3. Adding a new rule to our Caddy config (also done using Nix)
  4. Updating PowerDNS
  5. Pointing it at our LDAP server for authentication
  6. Figuring out why that didn’t work
  7. Despairing after we realised one typo meant the LDAP config wasn’t being read
  8. Fixing that
  9. And then it worked!

Overall it was very interesting to see how Nix functions, and although somewhat frustrating to start working with the final infrastructure-as-code setup is actually quite elegant.

- Alex.