configuration.nix/home/programs/git.nix

37 lines
847 B
Nix
Raw Normal View History

{ osConfig, ... }: {
2023-04-07 19:09:05 +05:30
programs.git = {
enable = true;
2023-08-17 10:24:50 +05:30
delta = {
2023-04-07 19:09:05 +05:30
enable = true;
2023-08-17 10:24:50 +05:30
options = {
2023-11-22 13:14:04 +05:30
side-by-side = false;
2023-08-17 10:24:50 +05:30
syntax-theme = "Dracula";
};
2023-04-07 19:09:05 +05:30
};
userEmail = "adtya@adtya.xyz";
userName = osConfig.users.users.adtya.description;
2023-04-07 19:09:05 +05:30
signing = {
key = "51E4F5AB1B82BE45B4229CC243A5E25AA5A27849";
2023-04-07 19:09:05 +05:30
signByDefault = true;
};
extraConfig = {
2024-02-18 17:40:30 +05:30
commit.verbose = true;
2023-08-28 22:19:48 +05:30
core = {
fsmonitor = true;
untrackedCache = true;
};
2024-02-18 17:40:30 +05:30
diff.algorithm = "histogram";
2023-08-28 22:19:48 +05:30
feature.manyFiles = true;
2024-02-18 17:40:30 +05:30
fetch.prune = true;
2023-04-07 19:09:05 +05:30
init.defaultBranch = "main";
2024-02-18 17:40:30 +05:30
merge.conflictstyle = "zdiff3";
push = {
default = "current";
autoSetupRemote = true;
};
2024-02-18 17:40:30 +05:30
pull.ff = "only";
2023-04-07 19:09:05 +05:30
};
2023-11-04 16:12:45 +05:30
ignores = [ "/.nix" "/.direnv" ];
2023-04-07 19:09:05 +05:30
};
}