diff options
| author | Stefan Weigl-Bosker <stefan@s00.xyz> | 2026-03-20 15:19:25 -0400 |
|---|---|---|
| committer | Stefan Weigl-Bosker <stefan@s00.xyz> | 2026-03-20 15:19:25 -0400 |
| commit | cfe005c685dab4319f2755ad9f61a47d98bc1e63 (patch) | |
| tree | 99df07ca4fcd1830acc61b6ec1d064c72b330e21 | |
| parent | de49363c1af68984787ddf1e0cca7d4c69be33a2 (diff) | |
| download | home-cfe005c685dab4319f2755ad9f61a47d98bc1e63.tar.gz | |
| -rw-r--r-- | modules/default.nix | 1 | ||||
| -rw-r--r-- | modules/global.nix | 1 | ||||
| -rw-r--r-- | modules/weechat.nix | 34 |
3 files changed, 36 insertions, 0 deletions
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' + ]; + }; +} |