feat(home/git): set work email

This commit is contained in:
Gabriel Fontes
2024-06-21 09:38:25 -03:00
parent 99d4de85a1
commit 739fecfccc
2 changed files with 9 additions and 2 deletions
+6
View File
@@ -17,6 +17,12 @@ in {
targets.genericLinux.enable = true;
programs.git = {
userEmail = "gabriel.fontes@luizalabs.com";
# Not adding my work email to my gpg, thanks
extraConfig.commit.gpgSign = false;
};
monitors = [{
name = "eDP-1";
width = 1920;
+3 -2
View File
@@ -1,6 +1,7 @@
{
pkgs,
config,
lib,
...
}: let
ssh = "${pkgs.openssh}/bin/ssh";
@@ -47,11 +48,11 @@ in {
add-nowhitespace = "!git diff -U0 -w --no-color | git apply --cached --ignore-whitespace --unidiff-zero -";
};
userName = "Gabriel Fontes";
userEmail = "hi@m7.rs";
userEmail = lib.mkDefault "hi@m7.rs";
extraConfig = {
init.defaultBranch = "main";
user.signing.key = "CE707A2C17FAAC97907FF8EF2E54EA7BFE630916";
commit.gpgSign = true;
commit.gpgSign = lib.mkDefault true;
gpg.program = "${config.programs.gpg.package}/bin/gpg2";
merge.conflictStyle = "zdiff3";