nixos-config/user/app/git/git.nix
2023-06-28 20:09:57 -05:00

12 lines
243 B
Nix

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