Home-Manager git multiple entry

Hi there !

I would like to add something like this to my git config with home-manager:

[credential]
	helper = cache --timeout 21600	# six hours
	helper = oauth

So I wrote this in my home-manager config:

  programs = {
    git = {
      enable = true;
      extraConfig = {
        credential = {
          helper = "oauth";
          helper = "cache --timeout 21600"; # 6 hours
        };
     };
   };
 };

But nix language do not like this.

Any idea of how to do it ?

You want helper = [ "oauth" "cache --timeout 21600" ]

3 Likes