feat: set up weechat and glowing bear

This commit is contained in:
buffet 2024-07-02 16:57:06 +02:00
parent 18a8793f21
commit b9e734b2a0
2 changed files with 36 additions and 0 deletions

View file

@ -19,6 +19,7 @@
./murmur.nix
./nginx.nix
./upgrade.nix
./weechat.nix
./woodpecker.nix
../../users/maintainer

35
hosts/ami/weechat.nix Normal file
View file

@ -0,0 +1,35 @@
{pkgs, ...}: let
port = 6969;
in {
services = {
weechat = {
enable = true;
binary = let
weechat = pkgs.weechat.override {
scripts = with pkgs.weechatScripts; [
autosort
highmon
];
};
in "${weechat}/bin/weechat-headless";
};
nginx = {
virtualHosts."irc.buffet.sh" = {
useACMEHost = "buffet.sh";
forceSSL = true;
locations = {
"^~ /weechat" = {
proxyPass = "http://localhost:${toString port}";
proxyWebsockets = true;
};
"/" = {
root = pkgs.glowing-bear;
};
};
};
};
};
}