aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/default.nix1
-rw-r--r--modules/global.nix1
-rw-r--r--modules/weechat.nix34
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'
+ ];
+ };
+}