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

12 lines
243 B
Nix
Raw Normal View History

2023-06-29 06:39:57 +05:30
{ config, lib, pkgs, name, email, ... }:
{
home.packages = [ pkgs.git ];
programs.git.enable = true;
2023-06-29 06:39:57 +05:30
programs.git.userName = name;
programs.git.userEmail = email;
programs.git.extraConfig = {
init.defaultBranch = "main";
};
}