2023-07-08 14:11:28 +05:30
|
|
|
{secrets, ...}: let
|
2023-07-01 17:45:08 +05:30
|
|
|
user = secrets.users;
|
2023-05-18 16:11:26 +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 = {
|
|
|
|
side-by-side = true;
|
|
|
|
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 = {
|
2023-08-28 22:19:48 +05:30
|
|
|
core = {
|
|
|
|
fsmonitor = true;
|
|
|
|
untrackedCache = true;
|
|
|
|
};
|
|
|
|
feature.manyFiles = true;
|
2023-04-07 19:09:05 +05:30
|
|
|
init.defaultBranch = "main";
|
2023-08-17 10:24:50 +05:30
|
|
|
merge.conflictstyle = "diff3";
|
2023-04-07 19:09:05 +05:30
|
|
|
push.autoSetupRemote = true;
|
2023-07-15 10:53:32 +05:30
|
|
|
pull.rebase = true;
|
2023-04-07 19:09:05 +05:30
|
|
|
};
|
2023-05-18 16:11:26 +05:30
|
|
|
ignores = ["/.nix" "/.direnv"];
|
2023-04-07 19:09:05 +05:30
|
|
|
};
|
|
|
|
}
|