mirror of
https://git.feal.no/felixalb/nixos-config.git
synced 2024-12-23 04:27:31 +01:00
22 lines
412 B
Nix
22 lines
412 B
Nix
{ 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}";
|
|
};
|
|
}
|
|
|