Merge pull request 'feat: set up weechat and glowing bear' (#51) from setup-weechat into main
Reviewed-on: #51
This commit is contained in:
commit
62ae90a717
2 changed files with 36 additions and 0 deletions
|
@ -19,6 +19,7 @@
|
|||
./murmur.nix
|
||||
./nginx.nix
|
||||
./upgrade.nix
|
||||
./weechat.nix
|
||||
./woodpecker.nix
|
||||
|
||||
../../users/maintainer
|
||||
|
|
35
hosts/ami/weechat.nix
Normal file
35
hosts/ami/weechat.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue