nixos-config/config/programs/git.nix

26 lines
708 B
Nix
Raw Normal View History

2022-06-12 15:39:15 +00:00
{pkgs, ...}: {
2022-01-18 13:49:11 +00:00
programs.git = {
enable = true;
package = pkgs.gitAndTools.gitFull;
lfs.enable = true;
signing.signByDefault = true;
signing.key = "AB2BD8DAF2E37122";
2022-01-18 13:49:11 +00:00
userEmail = "lotte@chir.rs";
userName = "Charlotte 🦝 Delenk";
2022-05-13 20:47:21 +00:00
extraConfig = {
init.defaultBranch = "main";
merge.conflictstyle = "diff3";
2022-06-10 19:44:01 +00:00
diff = {
tool = "kitty";
guitool = "kitty.gui";
};
difftool = {
prompt = false;
trustExitCode = true;
kitty.cmd = "${pkgs.kitty}/bin/kitty +kitten diff $LOCAL $REMOTE";
"kitty.gui".cmd = "${pkgs.kitty}/bin/kitty ${pkgs.kitty}/bin/kitty +kitten diff $LOCAL $REMOTE";
};
2022-05-13 20:47:21 +00:00
};
2022-01-18 13:49:11 +00:00
};
2022-01-19 08:28:39 +00:00
}