rice/hosts/ami/weechat.nix
2024-07-02 17:06:33 +02:00

37 lines
741 B
Nix

{pkgs, ...}: let
port = 6969;
in {
services = {
weechat = {
enable = true;
binary = let
weechat = pkgs.weechat.override {
configure = _: {
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;
};
};
};
};
};
}