37 lines
622 B
Nix
37 lines
622 B
Nix
{
|
|
config,
|
|
lib,
|
|
username,
|
|
userfullname,
|
|
useremail,
|
|
...
|
|
}:
|
|
lib.my.makeHomeProgramConfig {
|
|
inherit config;
|
|
programName = "git";
|
|
optionPath = [
|
|
"cli"
|
|
"vcs"
|
|
"git"
|
|
];
|
|
extraConfig = {
|
|
my.home = {
|
|
programs.git = {
|
|
userName = "${userfullname}";
|
|
userEmail = "${useremail}";
|
|
signing = {
|
|
format = "ssh";
|
|
signByDefault = true;
|
|
key = "/home/${username}/.ssh/id_ed25519";
|
|
};
|
|
extraConfig = {
|
|
push.autoSetupRemote = true;
|
|
};
|
|
};
|
|
programs.lazygit = {
|
|
enable = true;
|
|
};
|
|
};
|
|
};
|
|
}
|