blob: 3f12beae8f675d84ce2d2ef9366523222ec8d08b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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'
];
};
}
|