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:
@@ -108,6 +108,7 @@ in {
|
||||
tmux = "${pkgs.tmux}/bin/tmux -2";
|
||||
sxiv = swallow "${pkgs.nsxiv}/bin/nsxiv";
|
||||
zathura = swallow "${pkgs.zathura}/bin/zathura";
|
||||
im = "${pkgs.openssh}/bin/ssh weechat@makanek -t tmux attach-session -t IM";
|
||||
yt = "${pkgs.yt-dlp}/bin/yt-dlp --add-metadata -ic"; # Download video link
|
||||
yta = "${pkgs.yt-dlp}/bin/yt-dlp --add-metadata -xic"; # Download with audio
|
||||
};
|
||||
|
||||
@@ -112,7 +112,6 @@ in {
|
||||
jbofihe # lojbanic software
|
||||
unstablePackages.aider-chat
|
||||
# unstablePackages.zoom-us # video conferencing
|
||||
unstablePackages.weechat
|
||||
(pkgs.writers.writeDashBin "im" ''
|
||||
weechat_password=$(${pkgs.pass}/bin/pass weechat)
|
||||
exec ${unstablePackages.weechat}/bin/weechat -t -r '/mouse enable; /remote add makanek http://${externalNetwork.makanek}:8002 -password='"$weechat_password"'; /remote connect makanek'
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
}: {
|
||||
systemd.services.telegram-bot-tlg-wotd = {
|
||||
enable = true;
|
||||
wantedBy = ["multi-user.target"];
|
||||
wants = ["network-online.target"];
|
||||
startAt = "9:30";
|
||||
path = [ pkgs.jq pkgs.curl pkgs.recode pkgs.deno pkgs.imagemagick pkgs.gawk pkgs.gnugrep pkgs.coreutils ];
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user