Git Configuration
Standalone
Git configuration uses a TOML format, and is loaded from either ~/.gitconfig
or ~/.config/git/config
.
Sample config
toml
[commit]
gpgsign = true
[push]
autoSetupRemote = true
[user]
email = "[email protected]"
name = "Patchy Pirate"
signingkey = "3321A02038BCAC34"
Under Home Manager
If using Home Manager, your config can be managed through home.nix
nix
programs.git = {
enable = true;
userName = "Patchy Pirate";
userEmail = "[email protected]";
extraConfig = {
push = {autoSetupRemote = true;};
user = {signingkey = "3321A02038BCAC34";};
commit = {gpgsign = true;};
};
};