diff --git a/home-manager/lcech-mac-veracode.nix b/home-manager/lcech-mac-veracode.nix index 11a558f..94bd306 100644 --- a/home-manager/lcech-mac-veracode.nix +++ b/home-manager/lcech-mac-veracode.nix @@ -9,6 +9,9 @@ let zshSourceDirs = [ ]; + gitUsername = "Lukas Cech"; + gitEmail = "lcech@veracode.com"; + in { 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" = { source = ./hammerspoon/C3CWorkspace.spoon; recursive = true; @@ -65,8 +76,8 @@ in programs.git = { enable = true; - userName = "Lukas Cech"; - userEmail = "lcech@veracode.com"; + userName = gitUsername; + userEmail = gitEmail; ignores = [ ".vscode" @@ -81,12 +92,35 @@ in editor = "vim"; }; + signing = { + signByDefault = true; + key = "5ABD6C5E"; + }; + pull.rebase = false; init.defaultBranch = "main"; }; }; + # Generate key wth gpg --full-gen-key + # Kind of key: 10 ECC sign only, curve 25519 + # Real name: + # Email address: + + # 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 and add to git account + + programs.gpg = { + enable = true; + settings = { + use-agent = true; + }; + mutableKeys = false; + publicKeys = [ ]; + }; + programs.lsd = { enable = true; enableAliases = true;