nixos-configuration/home/git.nix

35 lines
672 B
Nix
Raw Normal View History

2022-02-15 15:44:40 +01:00
user:
2022-12-18 11:55:49 +01:00
{ pkgs, ... }: {
2022-02-15 15:44:40 +01:00
programs.git = {
enable = true;
2022-12-18 11:55:49 +01:00
/* for git send-email support */
package = pkgs.gitAndTools.gitFull;
2022-02-15 15:44:40 +01:00
userName = user.git.name;
userEmail = user.git.email;
delta = {
enable = true;
options = {
theme = "base16";
};
};
extraConfig = {
diff = {
compactionHeuristic = true;
};
pull = {
rebase = true;
};
push = {
default = "simple";
};
2022-12-18 11:55:49 +01:00
sendemail = {
smtpserver = "${pkgs.msmtp}/bin/msmtp";
};
};
signing = {
key = "1FFE431282F4B8CC0A7579167FB009175885FC76";
signByDefault = true;
2022-02-15 15:44:40 +01:00
};
};
}