nix-config/modules/home-manager/git/default.nix
Jan Kremer b5563f24e0
git: Remove jujutsu
Not really compatible with git
2025-07-08 10:16:29 +02:00

53 lines
1.1 KiB
Nix

{
imports = [
./ignores.nix
];
home.sessionVariables = {
GITHUB_TOKEN = "$(gh auth token)";
};
programs = {
git = {
enable = true;
userName = "Jan Kremer";
userEmail = "mail@jankremer.eu";
lfs.enable = true;
difftastic.enable = true;
extraConfig = {
user.signingkey = "A7DA689CB3B078EC";
credential.helper = "osxkeychain";
merge.conflictstyle = "zdiff3";
commit = {
verbose = true;
gpgsign = true;
};
branch.sort = "-committerdate";
help.autocorrect = 10;
diff = {
algorithm = "histogram";
colorMoved = "default";
};
log.date = "iso";
rebase.autostash = true;
rerere.enabled = true;
push = {
followtags = true;
autoSetupRemote = true;
};
};
};
gh = {
enable = true;
settings.git_protocol = "ssh";
};
sapling = {
enable = true;
userName = "Jan Kremer";
userEmail = "mail@jankremer.eu";
};
};
}