Infini-SERVER: transfer thelounge to Infini-OPTIPLEX
This commit is contained in:
parent
d9268c13ff
commit
cbcccd3d02
5 changed files with 25 additions and 25 deletions
|
@ -3,6 +3,7 @@
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./filesystems.nix
|
./filesystems.nix
|
||||||
|
|
||||||
|
./thelounge.nix
|
||||||
./vaultwarden.nix
|
./vaultwarden.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
23
hosts/Infini-OPTIPLEX/thelounge.nix
Normal file
23
hosts/Infini-OPTIPLEX/thelounge.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -85,26 +85,8 @@
|
||||||
"nitter.inx.moe" = ssl // {
|
"nitter.inx.moe" = ssl // {
|
||||||
globalRedirect = "twitter.com";
|
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 = {
|
networking.firewall = {
|
||||||
|
|
|
@ -53,12 +53,6 @@ in
|
||||||
neededForBoot = true;
|
neededForBoot = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
"/persist/var/lib/thelounge" = lib.mkIf (data != null) {
|
|
||||||
device = data;
|
|
||||||
fsType = "btrfs";
|
|
||||||
options = [ "subvol=root/var/lib/thelounge" ] ++ commonOptions;
|
|
||||||
};
|
|
||||||
|
|
||||||
"/nix" = {
|
"/nix" = {
|
||||||
device = main;
|
device = main;
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
|
|
|
@ -121,7 +121,7 @@ in
|
||||||
"${cfg.dataDir}/config.js"."L+" = {
|
"${cfg.dataDir}/config.js"."L+" = {
|
||||||
user = "thelounge";
|
user = "thelounge";
|
||||||
group = "thelounge";
|
group = "thelounge";
|
||||||
argument = pkgs.writeText "config.js" configJsData;
|
argument = "${pkgs.writeText "config.js" configJsData}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue