diff options
author | tv <tv@krebsco.de> | 2017-06-04 09:07:59 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2017-06-04 09:18:23 +0200 |
commit | 6525727ada8af4e9787c336db05ae4499fff3e94 (patch) | |
tree | 4d762a99cf0b6bbe95b7a74b559e469b0543159a /tv/2configs | |
parent | f2eb45481720a30ddab5e309f43b59caae6cb238 (diff) |
tv gitconfig: init
Diffstat (limited to 'tv/2configs')
-rw-r--r-- | tv/2configs/gitconfig.nix | 19 | ||||
-rw-r--r-- | tv/2configs/gitrepos.nix (renamed from tv/2configs/git.nix) | 0 |
2 files changed, 19 insertions, 0 deletions
diff --git a/tv/2configs/gitconfig.nix b/tv/2configs/gitconfig.nix new file mode 100644 index 0000000..771a4b2 --- /dev/null +++ b/tv/2configs/gitconfig.nix @@ -0,0 +1,19 @@ +{ config, pkgs, ... }: + +with import <stockholm/lib>; + +{ + environment.etc.gitconfig.text = '' + [alias] + patch = !${pkgs.git}/bin/git --no-pager diff --no-color + [diff-so-fancy] + markEmptyLines = false + stripLeadingSymbols = false + [pager] + diff = ${pkgs.gitAndTools.diff-so-fancy}/bin/diff-so-fancy \ + | ${pkgs.less}/bin/less -FRX + [user] + email = tv@krebsco.de + name = tv + ''; +} diff --git a/tv/2configs/git.nix b/tv/2configs/gitrepos.nix index 13b1298..13b1298 100644 --- a/tv/2configs/git.nix +++ b/tv/2configs/gitrepos.nix |