rice/hosts/ami/weechat.nix

38 lines
732 B
Nix
Raw Normal View History

2024-07-02 16:57:06 +02:00
{pkgs, ...}: let
port = 6969;
in {
services = {
weechat = {
enable = true;
binary = let
weechat = pkgs.weechat.override {
2024-07-02 17:06:33 +02:00
configure = _: {
scripts = with pkgs.weechatScripts; [
autosort
highmon
];
};
2024-07-02 16:57:06 +02:00
};
2024-07-02 17:14:09 +02:00
in "${weechat}/bin/weechat";
2024-07-02 16:57:06 +02:00
};
nginx = {
virtualHosts."irc.buffet.sh" = {
useACMEHost = "buffet.sh";
forceSSL = true;
locations = {
"^~ /weechat" = {
proxyPass = "http://localhost:${toString port}";
proxyWebsockets = true;
};
"/" = {
root = pkgs.glowing-bear;
};
};
};
};
};
}