2
2
mirror of https://git.feal.no/felixalb/nixos-config.git synced 2024-12-23 12:37:30 +01:00
nixos-config/hosts/burnham/services/thelounge.nix

22 lines
412 B
Nix
Raw Normal View History

2024-05-29 01:31:38 +02:00
{ 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}";
};
}