2024-01-19 03:06:52 +05:30
|
|
|
{ config, pkgs, userSettings, ... }:
|
2023-05-14 01:49:11 +05:30
|
|
|
|
|
|
|
{
|
2023-06-11 09:34:03 +05:30
|
|
|
home.packages = [ pkgs.git ];
|
2023-05-14 01:49:11 +05:30
|
|
|
programs.git.enable = true;
|
2024-01-19 03:06:52 +05:30
|
|
|
programs.git.userName = userSettings.name;
|
|
|
|
programs.git.userEmail = userSettings.email;
|
2023-05-14 01:49:11 +05:30
|
|
|
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") ];
|
2023-05-14 01:49:11 +05:30
|
|
|
};
|
|
|
|
}
|