2024-07-02 14:57:06 +00:00
|
|
|
{pkgs, ...}: let
|
|
|
|
port = 6969;
|
|
|
|
in {
|
|
|
|
services = {
|
|
|
|
weechat = {
|
|
|
|
enable = true;
|
|
|
|
binary = let
|
|
|
|
weechat = pkgs.weechat.override {
|
2024-07-02 15:06:33 +00:00
|
|
|
configure = _: {
|
|
|
|
scripts = with pkgs.weechatScripts; [
|
|
|
|
autosort
|
|
|
|
highmon
|
|
|
|
];
|
|
|
|
};
|
2024-07-02 14:57:06 +00:00
|
|
|
};
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|