1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

weechat: use relay instead of API

This commit is contained in:
2024-10-01 21:03:33 +02:00
parent 7e033412bd
commit 904cc4401e
4 changed files with 5 additions and 8 deletions

View File

@@ -7,7 +7,6 @@
}: let
inherit (import ../../lib) kieran;
weechatHome = "/var/lib/weechat";
apiPort = 8002;
weechat-declarative = pkgs.callPackage ../../packages/weechat-declarative.nix {
inherit unstablePackages;
};
@@ -64,7 +63,7 @@ in {
autoconnect = true;
addresses = "irc.hackint.org/6697";
ipv6 = true;
ssl = true;
tls = true;
autojoin = ["#eloop" "#krebs" "#the_playlist"];
sasl_mechanism = "plain";
sasl_username = nick;
@@ -73,7 +72,7 @@ in {
libera = {
autoconnect = true;
addresses = "irc.libera.chat/6697";
ssl = true;
tls = true;
autojoin = ["#haskell" "#fysi" "#binaergewitter" "#vim"];
sasl_mechanism = "plain";
sasl_username = nick;
@@ -82,6 +81,7 @@ in {
retiolum = {
autoconnect = true;
addresses = "irc.r";
tls = false;
autojoin = ["#xxx" "#brockman" "#flix"];
command = lib.concatStringsSep "\\;" [
"/oper admin aidsballs"
@@ -96,6 +96,7 @@ in {
news = {
autoconnect = true;
addresses = "news.r";
tls = false;
autojoin = ["#cook" "#drachengame" "#oepnv" "#kmeinung" "#memes"];
};
};
@@ -118,7 +119,6 @@ in {
alias.cmd.mod = "/quote omode $channel +o $nick";
relay = {
port.weechat = 9000;
port.api = apiPort;
network.password = "\${sec.data.relay_password}";
};
filters = {
@@ -179,8 +179,6 @@ in {
};
};
networking.firewall.allowedTCPPorts = [apiPort];
users.groups.weechat = {};
users.extraUsers.weechat = {
useDefaultShell = true;