From e73985fcaedab4ac684a5c5dbdc82abf6de55da1 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Sun, 18 Dec 2022 11:55:49 +0100 Subject: [PATCH] Enable git sendmail and commit signing --- home/git.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/home/git.nix b/home/git.nix index db57843..4b11a36 100644 --- a/home/git.nix +++ b/home/git.nix @@ -1,7 +1,9 @@ user: -{ ... }: { +{ pkgs, ... }: { programs.git = { enable = true; + /* for git send-email support */ + package = pkgs.gitAndTools.gitFull; userName = user.git.name; userEmail = user.git.email; delta = { @@ -20,6 +22,13 @@ user: push = { default = "simple"; }; + sendemail = { + smtpserver = "${pkgs.msmtp}/bin/msmtp"; + }; + }; + signing = { + key = "1FFE431282F4B8CC0A7579167FB009175885FC76"; + signByDefault = true; }; }; }