configuration.nix/home/programs/git.nix

38 lines
803 B
Nix
Raw Normal View History

2023-11-04 16:12:45 +05:30
{ secrets, ... }:
let
2023-07-01 17:45:08 +05:30
user = secrets.users;
2023-11-04 16:12:45 +05:30
in
{
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
};
2023-07-08 14:11:28 +05:30
userEmail = user.primary.emailAddress;
2023-04-07 19:09:05 +05:30
userName = user.primary.realName;
signing = {
2023-06-02 23:40:36 +05:30
key = user.primary.pgpFingerprint;
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";
2023-04-07 19:09:05 +05:30
push.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
};
}