Skip to content

disable default setup of {$out}/etc/gitconfig: credential.helper=osxkeychain #1643

@helgeu

Description

@helgeu

Not sure if this is a git problem in general, a nix, home manager or nix-darwin in combo with git problem.

The problem is that by default every time I do a switch it reupdates the file {$out}/etc/gitconfig with credential.helper=osxkeychain.

I have not been able to find any easy/simple config variant of removing this default setup.

In my git.nix file I have

...
programs = {
git = {
enable = true;
settings = {
user.email = "[redacted]";
user.name = "[redacted]";

    credential.helper = "manager";
    credential.useHttpPath = true;

...

I am expecting the above setting to be the only credential.helpere but osxkeychain keeps popping up as default.

Any hint, clues, help?

Thx in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions