Files
ccl-nixos-dotfiles/modules/cli/vcs/git.nix
2025-07-25 12:25:06 +08:00

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;
};
};
};
}