fix: github cli

This commit is contained in:
Ryan Yin
2025-06-23 15:54:06 +08:00
parent 9aa0ff80ae
commit 623e697343
2 changed files with 21 additions and 7 deletions

View File

@@ -13,8 +13,27 @@
rm -f ${config.home.homeDirectory}/.gitconfig
'';
home.packages = with pkgs; [
];
# GitHub CLI tool
# https://cli.github.com/manual/
programs.gh = {
enable = true;
settings = {
git_protocol = "ssh";
prompt = "enabled";
aliases = {
co = "pr checkout";
pv = "pr view";
};
};
hosts = {
"github.com" = {
"users" = {
"ryan4yin" = null;
};
"user" = "ryan4yin";
};
};
};
programs.git = {
enable = true;

View File

@@ -24,11 +24,6 @@
# wechat-uos
];
# GitHub CLI tool
programs.gh = {
enable = true;
};
# allow fontconfig to discover fonts and configurations installed through home.packages
# Install fonts at system-level, not user-level
fonts.fontconfig.enable = false;