mirror of
https://github.com/traxys/Nixfiles.git
synced 2026-02-14 19:30:19 +01:00
33 lines
602 B
Nix
33 lines
602 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}: {
|
|
programs.git = {
|
|
enable = true;
|
|
userName = "traxys";
|
|
userEmail = config.extraInfo.email;
|
|
delta = {
|
|
enable = true;
|
|
options = {
|
|
line-numbers = true;
|
|
syntax-theme = "Dracula";
|
|
plus-style = "auto \"#121bce\"";
|
|
plus-emph-style = "auto \"#6083eb\"";
|
|
};
|
|
};
|
|
extraConfig = {
|
|
diff = {
|
|
algorithm = "histogram";
|
|
};
|
|
core = {
|
|
excludesfile = "${config.home.homeDirectory}/.gitignore";
|
|
};
|
|
};
|
|
};
|
|
|
|
home.file = {
|
|
".gitignore".source = ./gitignore;
|
|
};
|
|
}
|