1
0
mirror of https://github.com/kmein/niveum synced 2026-03-19 11:31:09 +01:00

feat(weechat): start from clean configs, autoconnect

This commit is contained in:
2021-12-30 03:37:53 +01:00
parent 2283dd67c6
commit ed788d318f
2 changed files with 15 additions and 17 deletions

View File

@@ -1,9 +1,9 @@
{ {
"url": "https://cgit.lassul.us/stockholm", "url": "https://cgit.lassul.us/stockholm",
"rev": "dd565a928a42f870302b3a14eea28eebc575071f", "rev": "e652f40200e5d86240be8f6cea0b9d1ddbbd0ad6",
"date": "2021-12-30T02:14:35+01:00", "date": "2021-12-30T03:22:40+01:00",
"path": "/nix/store/h7sgsx52qsawbs36ikb9ir0fz3nc4bgp-stockholm", "path": "/nix/store/l3bj9xb2bbs23314qwn0vjbvirksjllh-stockholm",
"sha256": "15i545kigizjvm2kh8c913c6fhysvpslsm6p6k1pqinwv85nlk6f", "sha256": "0rjjaqg6jfzfr61gg6jgknhc147rc9qwmyl8cwrfjv63vc60fyqs",
"fetchLFS": false, "fetchLFS": false,
"fetchSubmodules": false, "fetchSubmodules": false,
"deepClone": false, "deepClone": false,

View File

@@ -44,7 +44,7 @@ in {
}; };
server = { server = {
hackint = { hackint = {
autoconnect = false; autoconnect = true;
address = "irc.hackint.org/6697"; address = "irc.hackint.org/6697";
ipv6 = true; ipv6 = true;
ssl = true; ssl = true;
@@ -54,7 +54,7 @@ in {
sasl_password = lib.strings.fileContents <system-secrets/irc/hackint>; sasl_password = lib.strings.fileContents <system-secrets/irc/hackint>;
}; };
libera = { libera = {
autoconnect = false; autoconnect = true;
address = "irc.libera.chat/6697"; address = "irc.libera.chat/6697";
ssl = true; ssl = true;
autojoin = [ "#flipdot" "#haskell" "#nixos" "#fysi" "#binaergewitter" ]; autojoin = [ "#flipdot" "#haskell" "#nixos" "#fysi" "#binaergewitter" ];
@@ -63,7 +63,7 @@ in {
sasl_password = lib.strings.fileContents <system-secrets/irc/libera>; sasl_password = lib.strings.fileContents <system-secrets/irc/libera>;
}; };
oftc = { oftc = {
autoconnect = false; autoconnect = true;
address = "irc.oftc.net/6697"; address = "irc.oftc.net/6697";
ssl = true; ssl = true;
ipv6 = true; ipv6 = true;
@@ -74,7 +74,7 @@ in {
autojoin = [ "#osm" "#osm-de" "#home-manager" ]; autojoin = [ "#osm" "#osm-de" "#home-manager" ];
}; };
retiolum = { retiolum = {
autoconnect = false; autoconnect = true;
address = "irc.r"; address = "irc.r";
autojoin = [ "#xxx" "#brockman" "#flix" "#autowifi" ]; autojoin = [ "#xxx" "#brockman" "#flix" "#autowifi" ];
command = lib.concatStringsSep "\\;" [ command = lib.concatStringsSep "\\;" [
@@ -88,7 +88,7 @@ in {
sasl_password = lib.strings.fileContents <system-secrets/irc/retiolum>; sasl_password = lib.strings.fileContents <system-secrets/irc/retiolum>;
}; };
news = { news = {
autoconnect = false; autoconnect = true;
address = "news.r"; address = "news.r";
autojoin = [ "#cook" "#drachengame" "#oepnv" "#kmeinung" "#memes" ]; autojoin = [ "#cook" "#drachengame" "#oepnv" "#kmeinung" "#memes" ];
command = "/oper aids balls"; command = "/oper aids balls";
@@ -100,7 +100,7 @@ in {
address = "nibbana.jp"; address = "nibbana.jp";
username = nick; username = nick;
password = lib.strings.fileContents <system-secrets/matrix/nibbana>; password = lib.strings.fileContents <system-secrets/matrix/nibbana>;
autoconnect = false; autoconnect = true;
}; };
alias.cmd.mod = "/quote omode $channel +o $nick"; alias.cmd.mod = "/quote omode $channel +o $nick";
relay = { relay = {
@@ -110,7 +110,7 @@ in {
filters = { filters = {
zerocovid = { zerocovid = {
buffer = "*"; buffer = "*";
tags = [ "*" ]; tags = "*";
regex = "[kc]orona|💉|🤒|😷|[kc]ovid|virus|lockdown|va[kc][sc]in|mutante|mutation|impf|pandemi|κορ[ωο]ν[αο]ϊό|корона|expert|infe[ck]t|infizi|in[cz]iden[cz]|sars-cov|drosten|virolog|lauterbach|delta|omi[ck]ron|epidemi|booster|r-wert"; regex = "[kc]orona|💉|🤒|😷|[kc]ovid|virus|lockdown|va[kc][sc]in|mutante|mutation|impf|pandemi|κορ[ωο]ν[αο]ϊό|корона|expert|infe[ck]t|infizi|in[cz]iden[cz]|sars-cov|drosten|virolog|lauterbach|delta|omi[ck]ron|epidemi|booster|r-wert";
}; };
joinquit = { joinquit = {
@@ -120,20 +120,17 @@ in {
}; };
playlist_topic = { playlist_topic = {
buffer = "irc.*.#the_playlist"; buffer = "irc.*.#the_playlist";
tags = [ "irc_topic" ]; tags = "irc_topic";
regex = "*"; regex = "*";
}; };
brockman_notice = { brockman_notice = {
buffer = "irc.news.*"; buffer = "irc.news.*";
tags = [ "irc_notice" ]; tags = "irc_notice";
regex = "*"; regex = "*";
}; };
}; };
}; };
extraCommands = '' extraCommands = ''/matrix connect nibbana'';
/connect -all
/matrix connect nibbana
'';
}; };
}; };
in { in {
@@ -143,6 +140,7 @@ in {
restartIfChanged = true; restartIfChanged = true;
path = [ pkgs.alacritty.terminfo ]; path = [ pkgs.alacritty.terminfo ];
environment.WEECHAT_HOME = "/var/lib/weechat"; environment.WEECHAT_HOME = "/var/lib/weechat";
preStart = "${pkgs.coreutils}/bin/rm $WEECHAT_HOME/*.conf";
script = "${tmux} -2 new-session -d -s IM ${weechat}/bin/weechat"; script = "${tmux} -2 new-session -d -s IM ${weechat}/bin/weechat";
preStop = "${tmux} kill-session -t IM"; preStop = "${tmux} kill-session -t IM";
serviceConfig = { serviceConfig = {