diff --git a/users/simon/modules/git.nix b/users/simon/modules/git.nix index 09c08c6..b0f7a53 100644 --- a/users/simon/modules/git.nix +++ b/users/simon/modules/git.nix @@ -1,7 +1,8 @@ -{ config, pkgs, ... }: +{ config, lib, pkgs, ... }: { programs.git = { enable = true; + package = pkgs.gitFull; userName = "Simon Bruder"; userEmail = "simon@sbruder.de"; signing = { @@ -25,6 +26,16 @@ }; sops.textconv = "${pkgs.sops}/bin/sops -d"; }; + sendemail = { + confirm = "auto"; + smtpserver = "vueko.sbruder.de"; + smtpuser = "simon@sbruder.de"; + smtpencryption = "tls"; + smtpserverport = 587; + }; + credential = { + helper = "!${pkgs.pass-git-helper}/bin/pass-git-helper $@"; + }; }; ignores = [ @@ -85,4 +96,10 @@ gsm = "git switch ${defaultBranch}"; gst = "git status"; }; + + xdg.configFile = { + "pass-git-helper/git-pass-mapping.ini".text = lib.generators.toINI { } { + "vueko.sbruder.de:587".target = "sbruder.de/mail"; + }; + }; }