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;
userName = "Kristian Krsnik";
userEmail = "git@krsnik.at";
signing = {
key = userEmail;
signByDefault = true;
};
extraConfig = {
init.defaultBranch = "main";
};

View File

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