Infini-SERVER: transfer thelounge to Infini-OPTIPLEX

This commit is contained in:
Infinidoge 2024-02-01 20:37:02 -05:00
parent d9268c13ff
commit cbcccd3d02
Signed by: Infinidoge
SSH key fingerprint: SHA256:oAMyvotlNFraMmZmr+p6AxnNfW/GioTs1pOn3V4tQ7A
5 changed files with 25 additions and 25 deletions

View file

@ -3,6 +3,7 @@
./hardware-configuration.nix
./filesystems.nix
./thelounge.nix
./vaultwarden.nix
];

View file

@ -0,0 +1,23 @@
{ config, pkgs, ... }:
{
services.nginx.virtualHosts."thelounge.inx.moe" = config.common.nginx.ssl // {
locations."/" = {
proxyPass = "http://localhost:${toString config.services.thelounge.port}";
};
};
services.thelounge = {
enable = true;
dataDir = "/srv/thelounge";
plugins = with pkgs.theLoungePlugins; [
themes.zenburn-monospace
themes.dracula
themes.discordapp
];
port = 9786;
extraConfig = {
reverseProxy = true;
};
};
}

View file

@ -85,26 +85,8 @@
"nitter.inx.moe" = ssl // {
globalRedirect = "twitter.com";
};
"thelounge.inx.moe" = ssl // {
locations."/" = {
proxyPass = "http://localhost:${toString config.services.thelounge.port}";
};
};
};
};
thelounge = {
enable = true;
plugins = with pkgs.theLoungePlugins; [
themes.zenburn-monospace
themes.dracula
themes.discordapp
];
port = 9786;
extraConfig = {
reverseProxy = true;
};
};
};
networking.firewall = {

View file

@ -53,12 +53,6 @@ in
neededForBoot = true;
};
"/persist/var/lib/thelounge" = lib.mkIf (data != null) {
device = data;
fsType = "btrfs";
options = [ "subvol=root/var/lib/thelounge" ] ++ commonOptions;
};
"/nix" = {
device = main;
fsType = "btrfs";

View file

@ -121,7 +121,7 @@ in
"${cfg.dataDir}/config.js"."L+" = {
user = "thelounge";
group = "thelounge";
argument = pkgs.writeText "config.js" configJsData;
argument = "${pkgs.writeText "config.js" configJsData}";
};
};