mirror of
https://git.feal.no/felixalb/nixos-config.git
synced 2025-12-17 23:30:21 +01:00
morn: add thelounge
This commit is contained in:
@@ -8,9 +8,11 @@
|
|||||||
../../common/auto-upgrade.nix
|
../../common/auto-upgrade.nix
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
|
||||||
|
./services/nginx.nix
|
||||||
|
|
||||||
./services/glance
|
./services/glance
|
||||||
./services/miniflux.nix
|
./services/miniflux.nix
|
||||||
./services/nginx.nix
|
./services/thelounge.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
networking = {
|
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}";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user