From cfe005c685dab4319f2755ad9f61a47d98bc1e63 Mon Sep 17 00:00:00 2001 From: Stefan Weigl-Bosker Date: Fri, 20 Mar 2026 15:19:25 -0400 Subject: modules/weechat: init --- modules/default.nix | 1 + modules/global.nix | 1 + modules/weechat.nix | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 modules/weechat.nix diff --git a/modules/default.nix b/modules/default.nix index 04285f0..33bb59f 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -32,5 +32,6 @@ ./mpd.nix ./rmpc ./py3status + ./weechat.nix ]; } diff --git a/modules/global.nix b/modules/global.nix index a9faf6a..9c474d5 100644 --- a/modules/global.nix +++ b/modules/global.nix @@ -64,6 +64,7 @@ in lazygit.enable = true; fuzzel.enable = true; zathura.enable = true; + weechat.enable = true; }; nixGL = lib.mkIf cfg.notNixOS { diff --git a/modules/weechat.nix b/modules/weechat.nix new file mode 100644 index 0000000..3f12bea --- /dev/null +++ b/modules/weechat.nix @@ -0,0 +1,34 @@ +{ + config, + lib, + pkgs, + ... +}: +let + cfg = config.modules.weechat; + + weechat' = pkgs.weechat.override { + configure = { availablePlugins, ... }: { + scripts = with pkgs.weechatScripts; [ + edit + colorize_nicks + autosort + highmon + weechat-grep + weechat-go + weechat-notify-send + ]; + }; + }; +in +{ + options.modules.weechat = { + enable = lib.mkEnableOption "weechat"; + }; + + config = lib.mkIf cfg.enable { + home.packages = with pkgs; [ + weechat' + ]; + }; +} -- cgit v1.2.3