morn: add thelounge
This commit is contained in:
parent
c601ed7d39
commit
c0e19e7c21
@ -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 = {
|
||||
|
||||
21
hosts/morn/services/thelounge.nix
Normal file
21
hosts/morn/services/thelounge.nix
Normal 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}";
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user