feat(git): add extra config and switch to delta

This commit is contained in:
Moritz Böhme 2024-02-17 09:43:02 +01:00
parent 8dab093deb
commit e07c55d902
Signed by: moritz
GPG key ID: 970C6E89EB0547A9

View file

@ -1,6 +1,5 @@
{ config
, lib
, pkgs
, ...
}:
@ -50,21 +49,23 @@ in
userName = cfg.identity.name;
userEmail = cfg.identity.email;
extraConfig = {
commit.verbose = true;
diff.algorithm = "histogram";
fetch.fsckobjects = true;
init.defaultBranch = "main";
merge.conflictstyle = "zdiff3";
diff.external = getExe pkgs.difftastic;
push.autoSetupRemote = true;
receive.fsckObjects = true;
transfer.fsckobjects = true;
};
signing = mkIf cfg.signing {
key = "0x970C6E89EB0547A9";
signByDefault = true;
};
lfs.enable = true;
delta.enable = true;
};
};
programs.git = {
enable = true;
config.safe.directory = "/home/moritz/.dotfiles";
};
programs.git.enable = true;
};
}