mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-09 14:15:12 +02:00
fix: github cli
This commit is contained in:
+21
-2
@@ -13,8 +13,27 @@
|
|||||||
rm -f ${config.home.homeDirectory}/.gitconfig
|
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 = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -24,11 +24,6 @@
|
|||||||
# wechat-uos
|
# wechat-uos
|
||||||
];
|
];
|
||||||
|
|
||||||
# GitHub CLI tool
|
|
||||||
programs.gh = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# allow fontconfig to discover fonts and configurations installed through home.packages
|
# allow fontconfig to discover fonts and configurations installed through home.packages
|
||||||
# Install fonts at system-level, not user-level
|
# Install fonts at system-level, not user-level
|
||||||
fonts.fontconfig.enable = false;
|
fonts.fontconfig.enable = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user