- Proper fix for git credential manager, seems to be detecting the binary

This commit is contained in:
jeirmeister 2024-10-30 03:14:08 -07:00
parent 51140417d0
commit 63eb82868b

View File

@ -1,18 +1,23 @@
# users/jeirmeister/programs/git.nix
{ config, pkgs, ... }:
{
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";
# Configure credential helper
credential = {
helper = "${pkgs.git-credential-manager}/bin/git-credential-manager";
useHttpPath = true;
};
};
ignores = [
".DS_Store"
"*.swp"
@ -20,4 +25,16 @@
".idea/"
];
};
}
# Ensure required KDE packages are installed
home.packages = with pkgs; [
git-credential-manager
ksshaskpass
];
# Set environment variables for KDE integration
home.sessionVariables = {
GIT_ASKPASS = "${pkgs.ksshaskpass}/bin/ksshaskpass";
SSH_ASKPASS = "${pkgs.ksshaskpass}/bin/ksshaskpass";
};
}