Skip to content

Commit

Permalink
hm/git: try git-credential-manager
Browse files Browse the repository at this point in the history
  • Loading branch information
linyinfeng committed Dec 13, 2024
1 parent 9d62709 commit e420634
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions home-manager/profiles/git/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e420634

Please sign in to comment.