nixos-config/user/app/git/git.nix
2024-02-28 19:42:06 -06:00

13 lines
335 B
Nix

{ config, pkgs, userSettings, ... }:
{
home.packages = [ pkgs.git ];
programs.git.enable = true;
programs.git.userName = userSettings.name;
programs.git.userEmail = userSettings.email;
programs.git.extraConfig = {
init.defaultBranch = "main";
safe.directory = "/home/" + userSettings.username + "/.dotfiles";
};
}