dotfiles/homes/x86_64-linux/christopher@cobalt/config/git.nix
Christopher Mühl 786af32daf
Publish my config
This is the result of ~100 commits to my NixOS config. Since I haven't
always used `agenix-rekey`, this is another initial commit so that none
of the secrets in my git history are leaked
2025-07-30 23:36:39 +02:00

42 lines
1.2 KiB
Nix

{pkgs, ...}: {
home.packages = with pkgs; [
# Dev tools
git
gh
gitAndTools.git-absorb
delta
pkgs._elements.git-delete-stale
];
programs.git = {
enable = true;
userName = "Christopher Mühl";
userEmail = "christopher@muehl.dev";
signing = {
signByDefault = true;
key = "E919B0F59E14FD47";
};
extraConfig = {
users.email = "padarom@users.noreply.github.com";
push = {
default = "current";
autoSetupRemote = true;
followTags = true;
};
column.ui = "auto"; # Display columns in `git branch` automatically
branch.sort = "-committerdate"; # Sort `git branch` by last commit date
rerere.enabled = true; # Enable reuse recorded resolution, for automatic merge resolution
alias.force-push = "push --force-with-lease"; # Safe force pushes
fetch.writeCommitGraph = true; # Automatically write the commit graph on fetches
init.defaultBranch = "main";
core.pager = "delta";
interactive.diffFilter = "delta --color-only";
delta = {
navigate = true;
dark = true;
};
merge.conflictstyle = "zdiff3";
};
};
}