17 lines
259 B
Nix
17 lines
259 B
Nix
{
|
|
username,
|
|
email,
|
|
}:
|
|
{ ... }:
|
|
{
|
|
programs.git = {
|
|
enable = true;
|
|
userName = username;
|
|
userEmail = email;
|
|
extraConfig = {
|
|
safe.directory = [ "/etc/nixos" ];
|
|
init.defaultBranch = "main";
|
|
pull.rebase = true;
|
|
};
|
|
};
|
|
}
|