From a53756452fa87cce85299856a56634e77814f093 Mon Sep 17 00:00:00 2001 From: Kristian Krsnik Date: Mon, 4 Sep 2023 23:53:54 +0200 Subject: [PATCH] added automatic git signing --- modules/git.nix | 6 +++++- modules/vscode.nix | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/git.nix b/modules/git.nix index 9993c7e..d1007fb 100644 --- a/modules/git.nix +++ b/modules/git.nix @@ -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"; }; diff --git a/modules/vscode.nix b/modules/vscode.nix index 413f943..1c185e4 100644 --- a/modules/vscode.nix +++ b/modules/vscode.nix @@ -27,6 +27,7 @@ ]; userSettings = { + "git.enableCommitSigning" = true; "window.menuBarVisibility" = "hidden"; "[nix]" = { "editor.formatOnSave" = true;