2023-02-10 07:46:37 +01:00
|
|
|
{pkgs, ...}: {
|
2023-01-31 09:38:11 +01:00
|
|
|
programs.git = {
|
|
|
|
enable = true;
|
|
|
|
userName = "winston";
|
|
|
|
userEmail = "hey@winston.sh";
|
|
|
|
|
|
|
|
signing = {
|
|
|
|
signByDefault = true;
|
|
|
|
key = "A476C39610E53A689A57BD0D0B89BC45007EE9CC";
|
|
|
|
};
|
|
|
|
|
|
|
|
diff-so-fancy.enable = true;
|
|
|
|
lfs.enable = true;
|
|
|
|
|
|
|
|
ignores = [
|
|
|
|
# general
|
|
|
|
"*.log"
|
|
|
|
".DS_Store"
|
|
|
|
# editors
|
|
|
|
"*.swp"
|
|
|
|
".gonvim/"
|
|
|
|
".idea/"
|
|
|
|
"ltex.dictionary*.txt"
|
|
|
|
# nix-specific
|
|
|
|
".direnv/"
|
|
|
|
".envrc"
|
|
|
|
];
|
|
|
|
|
|
|
|
# disable the macOS keychain, only use gopass
|
2023-02-10 07:46:37 +01:00
|
|
|
package = pkgs.git.override {osxkeychainSupport = false;};
|
2023-01-31 09:38:11 +01:00
|
|
|
|
|
|
|
extraConfig = {
|
|
|
|
credential.helper = "gopass";
|
|
|
|
init.defaultBranch = "main";
|
|
|
|
push.default = "current";
|
|
|
|
push.gpgSign = "if-asked";
|
|
|
|
rebase.autosquash = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|