dotfiles/home-manager/programs/git.nix

30 lines
703 B
Nix
Raw Normal View History

2023-05-02 22:47:01 +02:00
{ config, pkgs, lib, ... }:
{
programs.git = {
enable = true;
lfs.enable = true;
userEmail = "thilo.billerbeck@officerent.de";
userName = "Thilo Billerbeck";
extraConfig = {
color = {
diff = "auto";
status = "auto";
branch = "auto";
interactive = "auto";
ui = true;
pager = true;
2023-05-02 22:47:01 +02:00
};
log = { date = "short"; };
rerere = { enabled = "1"; };
core = {
whitespace = "fix,-indent-with-non-tab,trailing-space,cr-at-eol";
2023-07-21 22:50:24 +02:00
excludesfile = "~/.gitignore";
autocrlf = "input";
};
apply = { whitespace = "nowarn"; };
branch = { autosetuprebase = "always"; };
2023-05-02 22:47:01 +02:00
};
};
2023-05-02 22:47:01 +02:00
}