mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 20:39:18 -08:00
45 lines
1.1 KiB
Nix
45 lines
1.1 KiB
Nix
{ config, pkgs, ... }:
|
|
|
|
let
|
|
sources = import ../../../../nix/sources.nix;
|
|
unstable = import sources.nixpkgs-unstable { inherit (pkgs) config; };
|
|
in {
|
|
services.weechat = {
|
|
binary = let
|
|
new-weechat = pkgs.arc.pkgs.wrapWeechat pkgs.arc.pkgs.weechat-unwrapped {
|
|
configure = { availablePlugins, ... }: {
|
|
scripts = [ pkgs.arc.pkgs.weechatScripts.weechat-matrix ];
|
|
plugins = [
|
|
availablePlugins.perl
|
|
(availablePlugins.python.withPackages
|
|
(ps: [ ps.potr ps.weechat-matrix ]))
|
|
];
|
|
};
|
|
};
|
|
in "${new-weechat}/bin/weechat";
|
|
#enable = true;
|
|
};
|
|
|
|
#programs.screen.screenrc = ''
|
|
# multiuser on
|
|
# acladd kat
|
|
#'';
|
|
|
|
services.nginx.virtualHosts."irc.kittywit.ch" = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
locations = {
|
|
"/" = { root = pkgs.glowing-bear; };
|
|
"^~ /weechat" = {
|
|
proxyPass = "http://127.0.0.1:9000";
|
|
proxyWebsockets = true;
|
|
};
|
|
};
|
|
};
|
|
|
|
deploy.tf.dns.records.kittywitch_irc = {
|
|
tld = "kittywit.ch.";
|
|
domain = "irc";
|
|
cname.target = "athame.kittywit.ch.";
|
|
};
|
|
}
|