configuration.nix/home/programs/git.nix
Adithya Nair dcb5d76ff0
cleanup secrets
move secrets out of the repo

move secrets

cleanup secrets
2024-06-16 22:32:48 +05:30

36 lines
847 B
Nix

{ osConfig, ... }: {
programs.git = {
enable = true;
delta = {
enable = true;
options = {
side-by-side = false;
syntax-theme = "Dracula";
};
};
userEmail = "adtya@adtya.xyz";
userName = osConfig.users.users.adtya.description;
signing = {
key = "51E4F5AB1B82BE45B4229CC243A5E25AA5A27849";
signByDefault = true;
};
extraConfig = {
commit.verbose = true;
core = {
fsmonitor = true;
untrackedCache = true;
};
diff.algorithm = "histogram";
feature.manyFiles = true;
fetch.prune = true;
init.defaultBranch = "main";
merge.conflictstyle = "zdiff3";
push = {
default = "current";
autoSetupRemote = true;
};
pull.ff = "only";
};
ignores = [ "/.nix" "/.direnv" ];
};
}