From b3656ee76f3b721a00e72f98ba597719b1d71407 Mon Sep 17 00:00:00 2001 From: seth Date: Sun, 10 Sep 2023 16:47:27 -0400 Subject: seth/git: use gh credential helper --- users/seth/programs/git.nix | 7 ++++++- users/seth/programs/ssh.nix | 5 ----- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'users/seth/programs') 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"; -- cgit v1.2.3