morn: add thelounge

This commit is contained in:
Felix Albrigtsen 2025-11-06 22:05:25 +01:00
parent c601ed7d39
commit c0e19e7c21
2 changed files with 24 additions and 1 deletions

View File

@ -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 = {

View File

@ -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}";
};
}