- Proper fix for git credential manager, seems to be detecting the binary
This commit is contained in:
parent
51140417d0
commit
63eb82868b
@ -1,18 +1,23 @@
|
|||||||
# users/jeirmeister/programs/git.nix
|
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
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";
|
|
||||||
|
# Configure credential helper
|
||||||
|
credential = {
|
||||||
|
helper = "${pkgs.git-credential-manager}/bin/git-credential-manager";
|
||||||
|
useHttpPath = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
ignores = [
|
ignores = [
|
||||||
".DS_Store"
|
".DS_Store"
|
||||||
"*.swp"
|
"*.swp"
|
||||||
@ -20,4 +25,16 @@
|
|||||||
".idea/"
|
".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";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user