2023-05-08 21:41:02 +00:00
|
|
|
{ lib, pkgs, ... }:
|
2022-11-22 05:28:41 +00:00
|
|
|
|
2023-01-27 07:55:38 +00:00
|
|
|
let
|
|
|
|
mkCfg = lib.generators.toINI { };
|
|
|
|
in
|
2022-10-21 15:41:28 +00:00
|
|
|
{
|
2023-05-08 21:41:02 +00:00
|
|
|
sane.programs.git.fs.".config/git/config".symlink.text = mkCfg {
|
2023-05-17 00:26:04 +00:00
|
|
|
# top-level options documented:
|
|
|
|
# - <https://git-scm.com/docs/git-config#_variables>
|
|
|
|
|
2023-01-27 07:55:38 +00:00
|
|
|
user.name = "Colin";
|
|
|
|
user.email = "colin@uninsane.org";
|
2023-05-17 00:26:04 +00:00
|
|
|
|
2023-01-27 07:55:38 +00:00
|
|
|
alias.co = "checkout";
|
2023-05-17 00:26:04 +00:00
|
|
|
|
2023-01-27 07:55:38 +00:00
|
|
|
# difftastic docs:
|
|
|
|
# - <https://difftastic.wilfred.me.uk/git.html>
|
|
|
|
diff.tool = "difftastic";
|
|
|
|
difftool.prompt = false;
|
|
|
|
"difftool \"difftastic\"".cmd = ''${pkgs.difftastic}/bin/difft "$LOCAL" "$REMOTE"'';
|
|
|
|
# now run `git difftool` to use difftastic git
|
2023-05-17 00:26:04 +00:00
|
|
|
|
|
|
|
# render dates as YYYY-MM-DD HH:MM:SS +TZ
|
|
|
|
log.date = "iso";
|
2023-05-08 21:41:02 +00:00
|
|
|
};
|
2022-10-21 15:41:28 +00:00
|
|
|
}
|