mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
39 lines
996 B
Nix
39 lines
996 B
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;
|
|
};
|
|
};
|
|
};
|
|
}
|