Skip to content

Commit

Permalink
Manage gh with home-manager
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Aug 10, 2023
1 parent 4387b17 commit 032c753
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions home-manager/git.nix
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,26 @@
pull = {
ff = "only";
};
};
};

credential = {
"https://github.com".helper = "!${pkgs.gh}/bin/gh auth git-credential";
"https://gist.github.com".helper = "!${pkgs.gh}/bin/gh auth git-credential";
};
# https://github.com/nix-community/home-manager/blob/master/modules/programs/gh.nix
programs.gh = {
enable = true;

gitCredentialHelper = {
enable = true;

hosts = [
"https://github.com"
"https://gist.github.com"
];
};

# poi is not yet registered to nixpkgs
# extensions = [
# pkgs.gh-poi
# ];
};

# https://github.com/nix-community/home-manager/blob/master/modules/programs/lazygit.nix
Expand Down

0 comments on commit 032c753

Please sign in to comment.