ErnWong / dotfiles-old-divnix

Ironically, not many files here are actually dotfiles. Bootstrapped from https://github.com/divnix/devos
MIT License
0 stars 0 forks source link

Fix credentials story for gh #16

Closed ErnWong closed 2 years ago

ErnWong commented 2 years ago

Current workflow is manual and tedious:

Disable program.gh.enable Install gh via home.packages Authenticate Delete config.yml Renable program.gh.enable

See: https://github.com/nix-community/home-manager/issues/1654

ErnWong commented 2 years ago

For some reason, enableGitCredentialHelper doesn't seem to be setting the value for git.extraConfig. It'll be easier for me to just use home.packages version of git, and manually specify the credential helper in git.extraConfig like it currently does in the git module:

https://github.com/nix-community/home-manager/blob/829e89a16f4f96428d1b94e68d4c06107b5491c0/modules/programs/gh.nix#L106-L109

ErnWong commented 2 years ago

Closing as it's now quite alright - just use gh via home.packages