infrastructure/services/weechat.nix

20 lines
386 B
Nix

{ config, pkgs, ... }:
{
services.nginx.virtualHosts."irc.kittywit.ch" = {
locations = {
"/" = { root = pkgs.glowing-bear; };
"^~ /weechat" = {
proxyPass = "http://127.0.0.1:9000";
proxyWebsockets = true;
};
};
};
domains.kittywitch_irc = {
domain = "irc";
type = "cname";
inherit (config.networks.internet) target;
};
}