diff --git a/hosts/Infini-SERVER/default.nix b/hosts/Infini-SERVER/default.nix index 23a66aa..d040428 100644 --- a/hosts/Infini-SERVER/default.nix +++ b/hosts/Infini-SERVER/default.nix @@ -43,6 +43,7 @@ "/var/lib/systemd/coredump" "/var/lib/tailscale" "/var/lib/bitwarden_rs" + "/var/lib/thelounge" "/srv" ]; @@ -103,6 +104,11 @@ proxyPass = "http://127.0.0.1:${toString config.services.vaultwarden.config.ROCKET_PORT}"; }; }; + "thelounge.inx.moe" = ssl // { + locations."/" = { + proxyPass = "http://localhost:${toString config.services.thelounge.port}"; + }; + }; }; }; @@ -145,6 +151,17 @@ theme = "Black"; }; }; + + thelounge = { + enable = true; + plugins = with pkgs.theLoungePlugins; [ + themes.zenburn-monospace + ]; + port = 9786; + extraConfig = { + reverseProxy = true; + }; + }; }; networking.firewall = { diff --git a/hosts/Infini-SERVER/filesystems.nix b/hosts/Infini-SERVER/filesystems.nix index de827e9..0a01cb4 100644 --- a/hosts/Infini-SERVER/filesystems.nix +++ b/hosts/Infini-SERVER/filesystems.nix @@ -59,6 +59,12 @@ in options = [ "subvol=root/var/lib/bitwarden_rs" ] ++ commonOptions; }; + "/persist/var/lib/thelounge" = lib.mkIf (data != null) { + device = data; + fsType = "btrfs"; + options = [ "subvol=root/var/lib/thelounge" ] ++ commonOptions; + }; + "/nix" = { device = main; fsType = "btrfs";