From e420634b6bb666bd879ee0d5fb81a6bd45d1e424 Mon Sep 17 00:00:00 2001 From: Lin Yinfeng Date: Fri, 13 Dec 2024 11:35:08 +0800 Subject: [PATCH] hm/git: try git-credential-manager --- home-manager/profiles/git/default.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/home-manager/profiles/git/default.nix b/home-manager/profiles/git/default.nix index 01ff5b4cf..a6e88deaa 100644 --- a/home-manager/profiles/git/default.nix +++ b/home-manager/profiles/git/default.nix @@ -19,7 +19,10 @@ lib.mkMerge [ init.defaultBranch = "main"; pull.rebase = false; pull.ff = "only"; - credential.helper = "libsecret"; + credential = { + helper = "${pkgs.git-credential-manager}/bin/git-credential-manager"; + credentialStore = "secretservice"; + }; commit.gpgSign = true; # fish git status @@ -60,7 +63,10 @@ lib.mkMerge [ }; }; - home.packages = with pkgs; [ github-cli ]; + home.packages = with pkgs; [ + github-cli + git-credential-manager + ]; home.global-persistence.directories = [ ".config/gh" # github-cli