about summary refs log tree commit diff
path: root/programs/git.nix
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-11-12 17:12:00 +0100
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-11-12 17:12:00 +0100
commit23c2115bb054d88cef2ec2dfb7f250f981d1032e (patch)
tree4e35833ac6d4c0e1dd86b702bfbc9c47e611aa7e /programs/git.nix
parent12fb66f04a9755e24be965e0b44c8770de2073de (diff)
downloaddots-23c2115bb054d88cef2ec2dfb7f250f981d1032e.tar.gz
dots-23c2115bb054d88cef2ec2dfb7f250f981d1032e.zip
Update
Diffstat (limited to 'programs/git.nix')
-rwxr-xr-xprograms/git.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/programs/git.nix b/programs/git.nix
index f773a82..6b0b331 100755
--- a/programs/git.nix
+++ b/programs/git.nix
@@ -1,6 +1,8 @@
+{ pkgs, ... }:
 {
   programs.git = {
     enable = true;
+    package = pkgs.gitAndTools.gitFull;
     userName = "Patryk Niedźwiedziński";
     userEmail = "pniedzwiedzinski19@gmail.com";
     signing = {
@@ -13,8 +15,14 @@
 
     extraConfig = {
       url."ssh://git@github.com/".insteadOf = "https://github.com/";
+      url."ssh://git@github.com/pniedzwiedzinski/".insteadOf = "pn:";
       url."ssh://git@gitlab.com/".insteadOf = "https://gitlab.com/";
       url."ssh://git@bitbucket.org/".insteadOf = "https://bitbucket.org/";
+
+      sendemail = {
+        smtpserver = "${pkgs.msmtp}/bin/msmtp";
+        smtpserveroption  = [ "-a" "pniedzwiedzinski19@gmail.com" ];
+      };
     };
   };
 }