nixos/modules/base/git.nix
Pablo Ovelleiro Corral 2103ab9f6e
Update NixOS wiki link
2024-06-27 20:37:34 +02:00

33 lines
802 B
Nix

{home-manager, ...}: {
# Git version control system.
# https://wiki.nixos.org/wiki/Git
home-manager.users.caspervk = {
programs.git = {
enable = true;
userName = "Casper V. Kristensen";
userEmail = "casper@vkristensen.dk";
# Delta is a syntax-highlighting pager for git, diff, and grep output
# https://github.com/dandavison/delta
delta = {
enable = true;
options = {
line-numbers = true;
side-by-side = true;
};
};
extraConfig = {
diff.colorMoved = "default";
init.defaultBranch = "master";
pull.rebase = true;
push.autoSetupRemote = true;
rebase.autoSquash = true;
rebase.autoStash = true;
rebase.updateRefs = true;
};
};
};
}