From a451d2af6106d37cdd328af769f44096f3a86243 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Tue, 21 Jun 2022 23:13:37 +0200 Subject: [PATCH] feat(weechat): adapt to new declarative setup by @lassulus --- configs/telegram-bots/default.nix | 6 +++++- systems/makanek/weechat.nix | 16 ++++++++++------ 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/configs/telegram-bots/default.nix b/configs/telegram-bots/default.nix index 0502e55..9c1957a 100644 --- a/configs/telegram-bots/default.nix +++ b/configs/telegram-bots/default.nix @@ -4,7 +4,11 @@ lib, ... }: let - nixpkgs-21-11 = import (builtins.fetchTarball "https://github.com/NixOS/nixpkgs/archive/nixos-21.11.tar.gz") {}; + nixpkgs-21-11 = import (builtins.fetchTarball "https://github.com/NixOS/nixpkgs/archive/nixos-21.11.tar.gz") { + config.permittedInsecurePackages = [ + "python3.9-poetry-1.1.12" + ]; + }; telebots = nixpkgs-21-11.callPackage {}; reverseDirectory = "/run/telegram-reverse"; proverbDirectory = "/run/telegram-proverb"; diff --git a/systems/makanek/weechat.nix b/systems/makanek/weechat.nix index 984ae55..676011d 100644 --- a/systems/makanek/weechat.nix +++ b/systems/makanek/weechat.nix @@ -55,7 +55,7 @@ in { server = { hackint = { autoconnect = true; - address = "irc.hackint.org/6697"; + addresses = "irc.hackint.org/6697"; ipv6 = true; ssl = true; autojoin = ["#eloop" "#krebs" "#hsmr" "#nixos" "#the_playlist" "#flipdot-berlin" "#hackint"]; @@ -65,7 +65,7 @@ in { }; libera = { autoconnect = true; - address = "irc.libera.chat/6697"; + addresses = "irc.libera.chat/6697"; ssl = true; autojoin = ["#flipdot" "#haskell" "#nixos" "#fysi" "#binaergewitter" "#neovim" "#lojban" "#vim" "#newsboat"]; sasl_mechanism = "plain"; @@ -74,7 +74,7 @@ in { }; oftc = { autoconnect = true; - address = "irc.oftc.net/6697"; + addresses = "irc.oftc.net/6697"; ssl = true; ipv6 = true; command = lib.concatStringsSep "\\;" [ @@ -85,7 +85,7 @@ in { }; retiolum = { autoconnect = true; - address = "irc.r"; + addresses = "irc.r"; autojoin = ["#xxx" "#brockman" "#flix" "#mukke"]; command = lib.concatStringsSep "\\;" [ "/oper admin aidsballs" @@ -99,7 +99,7 @@ in { }; news = { autoconnect = true; - address = "news.r"; + addresses = "news.r"; autojoin = ["#cook" "#drachengame" "#oepnv" "#kmeinung" "#memes"]; command = "/oper aids balls"; }; @@ -150,7 +150,11 @@ in { }; }; }; - extraCommands = ''/matrix connect nibbana''; + extraCommands = '' + /save + /matrix connect nibbana + /connect -all + ''; }; }; in {