about summary refs log tree commit diff
path: root/modules/shell/git/default.nix
blob: beabba8a5178b38298b5bfbc934bb8473d804cf4 (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
25
26
27
28
29
30
{ pkgs, ... }:

let
  mozlz4_textconv = pkgs.substituteAll {
    src = diff/mozlz4.in;
    isExecutable = true;

    inherit (pkgs) execline mozlz4a;
  };

  config = pkgs.substituteAll {
    src = ./config.in;

    inherit mozlz4_textconv;
    python = pkgs.python3;
    attributesfile = ./attributes;
    ignorefile = ./ignore;
    preferLocalBuild = true;
  };

in
{
  environment.systemPackages = with pkgs; with gitAndTools; [
    (git.override { svnSupport = true; sendEmailSupport = true; })
    git-absorb
    git-remote-hg
  ];

  users.users.qyliss.xdg.config.paths."git/config" = config;
}