2019-10-24 02:20:38 +02:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
cfg = config.programs.custom.git;
|
|
|
|
|
2021-11-01 09:20:42 +01:00
|
|
|
in
|
|
|
|
{
|
2019-10-24 02:20:38 +02:00
|
|
|
|
2019-12-20 05:54:26 +01:00
|
|
|
options.programs.custom.git.enable =
|
|
|
|
mkEnableOption "install git and all its tools";
|
2019-10-24 02:20:38 +02:00
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
|
2019-12-20 05:54:26 +01:00
|
|
|
environment.systemPackages = with pkgs; [
|
2019-10-24 02:20:38 +02:00
|
|
|
git
|
|
|
|
tig
|
2021-02-12 12:29:41 +01:00
|
|
|
lazygit
|
2019-10-24 02:20:38 +02:00
|
|
|
git-crypt
|
|
|
|
gitAndTools.gitflow
|
|
|
|
gitAndTools.gitSVN
|
|
|
|
gitAndTools.git2cl
|
|
|
|
|
|
|
|
# merge tools
|
|
|
|
meld
|
|
|
|
|
|
|
|
# activate using :
|
|
|
|
# git config --global core.pager "diff-so-fancy | less --tabs=4 -RFX"
|
|
|
|
gitAndTools.diff-so-fancy
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|