Updated git.nix to include configuration for global credential storage

This commit is contained in:
jeirmeister 2024-10-30 02:41:34 -07:00
parent d615414f29
commit 51140417d0
2 changed files with 9 additions and 0 deletions

View File

@ -50,6 +50,13 @@ in
unzip
p7zip
file
# Documentation & reference
tldr
# Productivity
todoist
todoist-electron
];
};

View File

@ -4,12 +4,14 @@
{
programs.git = {
enable = true;
package = pkgs.git.override { withLibsecret = true; };
lfs.enable = true;
userName = "jeirmeister";
userEmail = "jeir@jeirslab.xyz";
extraConfig = {
init.defaultBranch = "main";
pull.rebase = false;
credential.helper = "${pkgs.libsecret}/bin/git-credential-libsecret";
};
ignores = [
".DS_Store"