nixos-config/modules/shell/git.nix

25 lines
457 B
Nix
Raw Normal View History

2022-09-17 16:50:50 +02:00
#
# Git
#
{ user, ... }:
2022-09-17 16:50:50 +02:00
{
programs = {
git = {
enable = true;
userName = "Kabbone";
userEmail = "tobias@opel-online.de";
2022-10-09 14:52:39 +02:00
lfs.enable = true;
signing = {
2022-11-05 15:51:25 +01:00
key = "/home/${user}/.ssh/id_ed25519_sk_rk_red";
2022-11-05 10:30:12 +01:00
signByDefault = true;
};
2022-11-05 10:30:12 +01:00
extraConfig = {
gpg = { format = "ssh"; };
2024-07-14 14:14:43 +02:00
credential = { helper = "cache --timeout=3600"; };
};
2024-07-14 12:59:51 +02:00
difftastic.enable = true;
2022-09-17 16:50:50 +02:00
};
};
}