summary refs log blame commit diff stats
path: root/hm/git/default.nix
blob: 20a641b772cdbbbf06e7ed8150b74ae1ac0c6809 (plain) (tree)
1
2
3
4
5
6
              
                  
                           
                                 
                               










                                                         
               
                               













                                 

                       




                                        

      
{pkgs, ...}: {
  programs.git = {
    enable = true;
    package = pkgs.gitFull;
    userName = "Silas Schöffel";
    userEmail = "sils@sils.li";
    delta = {
      enable = true;
      options = {
        decorations = {
          commit-decoration-style = "bold purple box ul";
          file-decoration-style = "none";
          file-style = "bold red ul";
        };
        features = "decorations";
        whitespace-error-style = "22 reverse";
      };
    };
    signing = {
      key = "467B7D129EA73AC9";
      signByDefault = true;
    };
    extraConfig = {
      core = {
        autocrlf = "input";
      };
      safe = {
        directory = "/etc/nixos";
      };
      push = {
        autoSetupRemote = true;
      };
      init = {
        defaultBranch = "main";
      };
      commit = {
        verbose = true;
      };
      sendemail = {
        smtpserver = "server1.vhack.eu";
        smtpuser = "sils@sils.li";
        smtpencryption = "ssl";
        smtpserverport = "465";
      };
    };
  };
}