Add gpg git signature to Veracode

This commit is contained in:
Arnie 2025-02-07 14:13:03 +01:00
parent 51433e6aca
commit 76bdb1775d
No known key found for this signature in database
GPG Key ID: 4BDFA3BCF2999D11

View File

@ -9,6 +9,9 @@ let
zshSourceDirs = [ ]; zshSourceDirs = [ ];
gitUsername = "Lukas Cech";
gitEmail = "lcech@veracode.com";
in in
{ {
imports = [ imports = [
@ -41,6 +44,14 @@ in
''; '';
}; };
"${homedir}/.gnupg/gpg-agent.conf" = {
text = ''
default-cache-ttl 34560000
max-cache-ttl 34560000
pinentry-program ${pkgs.pinentry_mac}/bin/pinentry-mac
'';
};
"${homedir}/.hammerspoon/hmSpoons/C3CWorkspace.spoon" = { "${homedir}/.hammerspoon/hmSpoons/C3CWorkspace.spoon" = {
source = ./hammerspoon/C3CWorkspace.spoon; source = ./hammerspoon/C3CWorkspace.spoon;
recursive = true; recursive = true;
@ -65,8 +76,8 @@ in
programs.git = { programs.git = {
enable = true; enable = true;
userName = "Lukas Cech"; userName = gitUsername;
userEmail = "lcech@veracode.com"; userEmail = gitEmail;
ignores = [ ignores = [
".vscode" ".vscode"
@ -75,6 +86,11 @@ in
".envrc" ".envrc"
]; ];
signing = {
signByDefault = true;
key = "5ABD6C5E";
};
extraConfig = { extraConfig = {
core = { core = {
autocrlf = "input"; autocrlf = "input";
@ -87,6 +103,24 @@ in
}; };
}; };
# Generate key wth gpg --full-gen-key
# Kind of key: 10 ECC sign only, curve 25519
# Real name: <username>
# Email address: <email>
# Add to git: gpg --list-secret-keys --keyid-format SHORT
# get the bit after the key kind and put it in the signing.key in git config above
# gpg --armor --export <KEY> and add to git account
programs.gpg = {
enable = true;
settings = {
use-agent = true;
};
mutableKeys = false;
publicKeys = [ ];
};
programs.lsd = { programs.lsd = {
enable = true; enable = true;
enableAliases = true; enableAliases = true;