added automatic git signing

This commit is contained in:
Kristian Krsnik 2023-09-04 23:53:54 +02:00
parent c31759fc5e
commit a53756452f
No known key found for this signature in database
GPG Key ID: A618BA9FBDF8681C
2 changed files with 6 additions and 1 deletions

View File

@ -1,9 +1,13 @@
{...}: { {...}: {
config.programs.git = { config.programs.git = rec {
enable = true; enable = true;
userName = "Kristian Krsnik"; userName = "Kristian Krsnik";
userEmail = "git@krsnik.at"; userEmail = "git@krsnik.at";
signing = {
key = userEmail;
signByDefault = true;
};
extraConfig = { extraConfig = {
init.defaultBranch = "main"; init.defaultBranch = "main";
}; };

View File

@ -27,6 +27,7 @@
]; ];
userSettings = { userSettings = {
"git.enableCommitSigning" = true;
"window.menuBarVisibility" = "hidden"; "window.menuBarVisibility" = "hidden";
"[nix]" = { "[nix]" = {
"editor.formatOnSave" = true; "editor.formatOnSave" = true;