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
|
||||
./filesystems.nix
|
||||
|
||||
./thelounge.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 // {
|
||||
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 = {
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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}";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue