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 unzip
p7zip p7zip
file file
# Documentation & reference
tldr
# Productivity
todoist
todoist-electron
]; ];
}; };

View File

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