From a8e13f03d058a57428075d76b682e279e64ca2f6 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Fri, 25 Sep 2020 21:56:39 +0200 Subject: Init --- programs/git.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 programs/git.nix (limited to 'programs') diff --git a/programs/git.nix b/programs/git.nix new file mode 100755 index 0000000..f773a82 --- /dev/null +++ b/programs/git.nix @@ -0,0 +1,20 @@ +{ + programs.git = { + enable = true; + userName = "Patryk Niedźwiedziński"; + userEmail = "pniedzwiedzinski19@gmail.com"; + signing = { + key = "pniedzwiedzinski19@gmail.com"; + signByDefault = true; + }; + aliases = { + lg = "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative"; + }; + + extraConfig = { + url."ssh://git@github.com/".insteadOf = "https://github.com/"; + url."ssh://git@gitlab.com/".insteadOf = "https://gitlab.com/"; + url."ssh://git@bitbucket.org/".insteadOf = "https://bitbucket.org/"; + }; + }; +} -- cgit 1.4.1