about summary refs log tree commit diff
path: root/modules/workstation/weechat/default.nix
blob: 08a1edb86e6fc6cac2a9c23b72b930c1726bf9de (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ pkgs, ... }:

{
  environment.extraInit = ''
    export WEECHAT_HOME="$HOME/state/weechat"
  '';

  environment.systemPackages = with pkgs; [
    (weechat.override {
      configure = { availablePlugins, ... }: {
        plugins = with availablePlugins; [
          (python.withPackages (ps: with ps; [ potr websocket_client ]))
        ];
      };
    })
  ];

  home.qyliss.dirs."state/weechat".activationScripts.git = ''
    ${pkgs.git}/bin/git init -q
    ${pkgs.git}/bin/git remote rm origin 2>/dev/null || true
    ${pkgs.git}/bin/git remote add origin git@github.com:alyssais/weechat-config
    chown -R qyliss .git
  '';
}