mirror of
https://github.com/ryanccn/flake.git
synced 2025-12-06 16:10:45 +01:00
30 lines
696 B
Nix
30 lines
696 B
Nix
{pkgs, ...}: {
|
|
programs.git = {
|
|
enable = true;
|
|
package = pkgs.gitAndTools.gitFull;
|
|
|
|
diff-so-fancy.enable = true;
|
|
ignores = [
|
|
".DS_Store"
|
|
];
|
|
|
|
userName = "Ryan Cao";
|
|
userEmail = "70191398+ryanccn@users.noreply.github.com";
|
|
|
|
extraConfig = {
|
|
user.signingkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIM4VfgP5+HdCmM/VpTcW8jLKLyR8s0qqoIDXv7iTnWlR";
|
|
init.defaultBranch = "main";
|
|
|
|
commit.gpgsign = true;
|
|
gpg.format = "ssh";
|
|
"gpg \"ssh\"".program = "/Applications/1Password.app/Contents/MacOS/op-ssh-sign";
|
|
|
|
push.autoSetupRemote = true;
|
|
};
|
|
};
|
|
|
|
programs.gh = {
|
|
enable = true;
|
|
enableGitCredentialHelper = true;
|
|
};
|
|
}
|