nixos-config/modules/shell/git.nix
2024-07-14 14:14:43 +02:00

25 lines
457 B
Nix

#
# Git
#
{ user, ... }:
{
programs = {
git = {
enable = true;
userName = "Kabbone";
userEmail = "tobias@opel-online.de";
lfs.enable = true;
signing = {
key = "/home/${user}/.ssh/id_ed25519_sk_rk_red";
signByDefault = true;
};
extraConfig = {
gpg = { format = "ssh"; };
credential = { helper = "cache --timeout=3600"; };
};
difftastic.enable = true;
};
};
}