Files
amazing-dotfiles/modules/cli/git.nix
2026-02-23 19:51:37 +01:00

50 lines
730 B
Nix

{
pkgs,
userConfig,
...
}:
{
home.packages = with pkgs; [
git-graph
];
programs.git = {
enable = true;
settings = {
user = {
name = userConfig.fullName;
email = userConfig.email;
};
init.defaultBranch = "master";
push.autoSetupRemote = true;
core.editor = "nvim";
};
signing = {
key = userConfig.email;
signByDefault = true;
};
ignores = [
"*~"
"*.swp"
".DS_Store"
"node_modules"
"result"
"__pycache__"
];
};
programs.delta = {
enable = true;
enableGitIntegration = true;
};
services.gpg-agent = {
enable = true;
pinentry.package = pkgs.pinentry-curses;
};
}