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

14 lines
419 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-06-01 07:37:02 +05:30
safe.directory = [ ("/home/" + userSettings.username + "/.dotfiles")
("/home/" + userSettings.username + "/.dotfiles/.git") ];
};
}