Compare commits

...

2 commits

2 changed files with 36 additions and 0 deletions

View file

@ -19,6 +19,7 @@
./murmur.nix ./murmur.nix
./nginx.nix ./nginx.nix
./upgrade.nix ./upgrade.nix
./weechat.nix
./woodpecker.nix ./woodpecker.nix
../../users/maintainer ../../users/maintainer

35
hosts/ami/weechat.nix Normal file
View file

@ -0,0 +1,35 @@
{pkgs, ...}: let
port = 6969;
in {
services = {
weechat = {
enable = true;
binary = let
weechat = pkgs.weechat.override {
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;
};
};
};
};
};
}