about summary refs log tree commit diff
path: root/modules/workstation/weechat/default.nix
blob: 4ea9ec0084d2b00cbd24a098151fc0f2a448d23d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{ pkgs, ... }:

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

  environment.systemPackages = with pkgs; [ weechat ];

  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
  '';
}