nixos/modules/base/git.nix

27 lines
545 B
Nix
Raw Normal View History

2023-08-01 15:35:09 +02:00
{ home-manager, ... }: {
home-manager.users.caspervk = {
programs.git = {
enable = true;
userName = "Casper V. Kristensen";
userEmail = "casper@vkristensen.dk";
delta = {
enable = true;
2023-08-04 13:13:21 +02:00
options = {
line-numbers = true;
side-by-side = true;
};
2023-08-01 15:35:09 +02:00
};
extraConfig = {
2023-08-04 13:13:21 +02:00
diff.colorMoved = "default";
2023-08-01 15:35:09 +02:00
init.defaultBranch = "master";
pull.rebase = true;
rebase.autoSquash = true;
rebase.autoStash = true;
};
};
};
}