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

13 lines
335 B
Nix
Raw Normal View History

{ 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";
2024-02-29 07:12:06 +05:30
safe.directory = "/home/" + userSettings.username + "/.dotfiles";
};
}