feat: set up weechat and glowing bear
This commit is contained in:
parent
18a8793f21
commit
b9e734b2a0
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