feat(git): add signing with public key
This commit is contained in:
parent
753b30e2e2
commit
fc53bafcb9
1 changed files with 4 additions and 1 deletions
|
@ -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";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue