nixos-config/user/app/git/git.nix

12 lines
251 B
Nix

{ config, lib, pkgs, myName, myEmail, ... }:
{
home.packages = [ pkgs.git ];
programs.git.enable = true;
programs.git.userName = myName;
programs.git.userEmail = myEmail;
programs.git.extraConfig = {
init.defaultBranch = "main";
};
}