nixos-config/user/app/git/git.nix
2024-05-31 21:07:02 -05:00

14 lines
419 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")
("/home/" + userSettings.username + "/.dotfiles/.git") ];
};
}