diff options
| author | seth <[email protected]> | 2023-09-10 16:47:27 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-09-10 16:47:27 -0400 |
| commit | b3656ee76f3b721a00e72f98ba597719b1d71407 (patch) | |
| tree | 5dc3d1c049db9b2cf421d87f02046ff53fca3a3f /users/seth | |
| parent | a46e171d510ed0375b21c0372040305f42db57e1 (diff) | |
seth/git: use gh credential helper
Diffstat (limited to 'users/seth')
| -rw-r--r-- | users/seth/programs/git.nix | 7 | ||||
| -rw-r--r-- | users/seth/programs/ssh.nix | 5 |
2 files changed, 6 insertions, 6 deletions
diff --git a/users/seth/programs/git.nix b/users/seth/programs/git.nix index 290a1e8..78c4e49 100644 --- a/users/seth/programs/git.nix +++ b/users/seth/programs/git.nix @@ -13,10 +13,15 @@ in { gh = { enable = true; settings = { - git_protocol = "ssh"; + git_protocol = "https"; editor = "nvim"; prompt = "enabled"; }; + + gitCredentialHelper = { + enable = true; + hosts = ["https://github.com" "https://github.example.com"]; + }; }; git = { diff --git a/users/seth/programs/ssh.nix b/users/seth/programs/ssh.nix index ad87477..080a60e 100644 --- a/users/seth/programs/ssh.nix +++ b/users/seth/programs/ssh.nix @@ -18,11 +18,6 @@ in { sshDir = "${config.home.homeDirectory}/.ssh"; in { # git forges - "github.com" = { - identityFile = "${sshDir}/github"; - user = "git"; - }; - "codeberg.org" = { identityFile = "${sshDir}/codeberg"; user = "git"; |
