nixos-config/home/git.nix

41 lines
965 B
Nix
Raw Normal View History

2024-03-29 20:45:53 +00:00
{ pkgs, lib, ... }:
2024-03-02 03:13:17 +00:00
{
2024-03-30 21:08:47 +00:00
home.packages = [ pkgs.git-revise ];
2021-01-10 07:29:08 +00:00
programs.git = {
enable = true;
package = pkgs.gitAndTools.gitFull;
userName = "Artemis Tosini";
userEmail = "me@artem.ist";
signing = {
2024-03-29 20:45:53 +00:00
key = lib.mkDefault "D2173817C3E4B155EA8FFF49A54531E0D32143ED";
2021-01-10 07:29:08 +00:00
signByDefault = true;
};
2024-03-02 03:13:17 +00:00
ignores = [
"compile_commands.json"
".clangd/"
".idea/"
".config/clangd"
];
2021-01-10 07:29:08 +00:00
lfs.enable = true;
delta.enable = true;
extraConfig = {
transfer.fsckObjects = true;
advice.detachedHead = false;
2021-01-11 22:32:59 +00:00
pull.rebase = true;
2021-01-10 07:29:08 +00:00
init.defaultBranch = "canon";
log.showSignature = true;
2024-03-02 03:13:17 +00:00
credential.helper = "!${pkgs.gitAndTools.pass-git-helper}/bin/pass-git-helper $@";
2021-01-10 07:29:08 +00:00
sendemail = {
smtpServer = "smtp.fastmail.com";
smtpUser = "me@artem.ist";
smtpEncryption = "tls";
smtpServerPort = 587;
confirm = "auto";
};
};
};
}