diff options
Diffstat (limited to 'modules/weechat.nix')
| -rw-r--r-- | modules/weechat.nix | 34 |
1 files changed, 34 insertions, 0 deletions
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' + ]; + }; +} |