feat(git): add signing with public key

This commit is contained in:
Mohammad Rafiq 2025-03-17 16:46:50 +08:00
parent 753b30e2e2
commit fc53bafcb9
No known key found for this signature in database

View file

@ -1,15 +1,18 @@
{ {config, ...}: {
home.sessionVariables.GIT_CONFIG_GLOBAL = "$HOME/.config/git/config"; home.sessionVariables.GIT_CONFIG_GLOBAL = "$HOME/.config/git/config";
programs.git = { programs.git = {
enable = true; enable = true;
userName = "Mohammad Rafiq"; userName = "Mohammad Rafiq";
userEmail = "mohammadrafiq567@gmail.com"; userEmail = "mohammadrafiq567@gmail.com";
signing.key = "${config.home.homeDirectory}/.ssh/id_ed25519.pub";
signing.signByDefault = true;
extraConfig = { extraConfig = {
init.defaultBranch = "prime"; init.defaultBranch = "prime";
push.autoSetupRemote = true; push.autoSetupRemote = true;
pull.rebase = false; pull.rebase = false;
core.editor = "nvim"; core.editor = "nvim";
gpg.format = "ssh";
}; };
}; };
} }