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
|
|
|
};
|
2024-07-02 15:14:09 +00:00
|
|
|
in "${weechat}/bin/weechat";
|
2024-07-02 14:57:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nginx = {
|
|
|
|
virtualHosts."irc.buffet.sh" = {
|
|
|
|
useACMEHost = "buffet.sh";
|
|
|
|
forceSSL = true;
|
|
|
|
|
|
|
|
locations = {
|
|
|
|
"^~ /weechat" = {
|
|
|
|
proxyPass = "http://localhost:${toString port}";
|
|
|
|
proxyWebsockets = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
"/" = {
|
|
|
|
root = pkgs.glowing-bear;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|