flake/home/applications/git/default.nix
2024-02-05 17:46:57 +08:00

21 lines
447 B
Nix

{
programs.gh.enable = true;
programs.git = {
enable = true;
userName = "Guanran Wang";
userEmail = "guanran928@outlook.com";
delta.enable = true;
signing.signByDefault = true;
signing.key = "~/.ssh/id_github_signing";
extraConfig = {
gpg.format = "ssh";
pull.rebase = true;
};
};
xdg.configFile."gh/hosts.yml".text = ''
github.com:
git_protocol: https
user: Guanran928
'';
}