about summary refs log tree commit diff
path: root/programs
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-09-25 21:56:39 +0200
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-09-25 21:56:39 +0200
commita8e13f03d058a57428075d76b682e279e64ca2f6 (patch)
tree5057fcf11b357c75861c934e71f1f56b4b0b265f /programs
downloaddots-a8e13f03d058a57428075d76b682e279e64ca2f6.tar.gz
dots-a8e13f03d058a57428075d76b682e279e64ca2f6.zip
Init
Diffstat (limited to 'programs')
-rwxr-xr-xprograms/git.nix20
1 files changed, 20 insertions, 0 deletions
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/";
+    };
+  };
+}