summaryrefslogtreecommitdiffstats
path: root/tv/2configs/gitconfig.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2017-06-04 09:07:59 +0200
committertv <tv@krebsco.de>2017-06-04 09:18:23 +0200
commit99a5c110ac4f5056db66f5d229496508ec85dacd (patch)
tree78271a29d0e9bcad7e22d974e130aa6f9cd91405 /tv/2configs/gitconfig.nix
parentc68fe5f5b59bb598f5b4443f821586c7bb316ba1 (diff)
tv gitconfig: init
Diffstat (limited to 'tv/2configs/gitconfig.nix')
-rw-r--r--tv/2configs/gitconfig.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/tv/2configs/gitconfig.nix b/tv/2configs/gitconfig.nix
new file mode 100644
index 000000000..771a4b2a4
--- /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
+ '';
+}