From 9e5ca106b352545d03f3088bec6b9da3ed860d40 Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Wed, 13 Sep 2023 09:14:50 -0400 Subject: [PATCH] Infini-SERVER: setup thelounge --- hosts/Infini-SERVER/default.nix | 17 +++++++++++++++++ hosts/Infini-SERVER/filesystems.nix | 6 ++++++ 2 files changed, 23 insertions(+) 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";