nix-config

My personal nixos and home-manager configuration
Log | Files | Refs | README

git.nix (552B)


      1 { config, pkgs, lib, ... }:
      2 
      3 with lib;
      4 
      5 {
      6   options.git = {
      7     enable = mkEnableOption "Git";
      8   };
      9 
     10   config = mkIf config.git.enable {
     11     programs.git = {
     12       enable = true;
     13       userEmail = "bpaul@bpaul.xyz";
     14       userName = "Benjamin Paul";
     15 
     16       extraConfig = {
     17         core = {
     18           askPass = "";
     19           autocrlf = "input";
     20           excludesfile = ''
     21               .ccls-cache
     22             '';
     23         };
     24         github.user = "GuyClicking";
     25         help.autocorrect = 1;
     26         init.defaultBranch = "main";
     27       };
     28     };
     29   };
     30 }