This is my flakeless configuration for macOS using nix
{ ... }:
{
  programs.git = {
    enable = true;
    userEmail = "stas.ale66@gmail.com";
    userName = "WeetHet";
    extraConfig.init.defaultBranch = "main";
    delta = {
      enable = true;
      options = {
        side-by-side = true;
        line-numbers = true;
      };
    };
  };
}