From c0e19e7c211d7712632144e03b82b52567dae8c2 Mon Sep 17 00:00:00 2001 From: Felix Albrigtsen Date: Thu, 6 Nov 2025 22:05:25 +0100 Subject: [PATCH] morn: add thelounge --- hosts/morn/configuration.nix | 4 +++- hosts/morn/services/thelounge.nix | 21 +++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 hosts/morn/services/thelounge.nix diff --git a/hosts/morn/configuration.nix b/hosts/morn/configuration.nix index cb23457..db76421 100644 --- a/hosts/morn/configuration.nix +++ b/hosts/morn/configuration.nix @@ -8,9 +8,11 @@ ../../common/auto-upgrade.nix ./hardware-configuration.nix + ./services/nginx.nix + ./services/glance ./services/miniflux.nix - ./services/nginx.nix + ./services/thelounge.nix ]; networking = { diff --git a/hosts/morn/services/thelounge.nix b/hosts/morn/services/thelounge.nix new file mode 100644 index 0000000..ecfa4d8 --- /dev/null +++ b/hosts/morn/services/thelounge.nix @@ -0,0 +1,21 @@ +{ config, pkgs, lib, ... }: +let + cfg = config.services.thelounge.extraConfig; + domain = "irc.home.feal.no"; +in { + services.thelounge = { + enable = true; + + extraConfig = { + public = false; + host = "127.0.1.2"; + port = 9000; + reverseProxy = true; + }; + }; + + services.nginx.virtualHosts.${domain} = { + locations."/".proxyPass = "http://${cfg.host}:${toString cfg.port}"; + }; +} +