1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-22 19:19:45 +01:00

git-credential-oauth: fix ordering of git extraConfig

Added `mkAfter` to `git.extraConfig` to ensure our oauth is last, as
required to work with additional helpers.
This commit is contained in:
Kosta Gorodetsky 2024-11-01 10:46:22 +02:00 committed by GitHub
parent e83414058e
commit 8ca921e5a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -29,7 +29,7 @@ in {
config = lib.mkIf cfg.enable {
home.packages = [ cfg.package ];
programs.git.extraConfig.credential.helper = [
programs.git.extraConfig.credential.helper = lib.mkAfter [
("${cfg.package}/bin/git-credential-oauth"
+ lib.optionalString (cfg.extraFlags != [ ])
" ${lib.strings.concatStringsSep " " cfg.extraFlags}")