about summary refs log tree commit diff
path: root/programs/git.nix
diff options
context:
space:
mode:
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" ];
+      };
     };
   };
 }