From 3f5ea458f5c2f48ca92bd7907fcff3855acd1cb1 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Mon, 20 Jun 2022 08:15:18 +0200 Subject: [PATCH] feat: configure git --- home-mandlm.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/home-mandlm.nix b/home-mandlm.nix index 347ac70..fb340ec 100644 --- a/home-mandlm.nix +++ b/home-mandlm.nix @@ -52,6 +52,23 @@ white = "#fdf6e3"; }; }; + git = { + enable = true; + userName = "Michael Mandl"; + userEmail = "mandlm@molez.net"; + extraConfig = { + core.editor = "nvim"; + fetch.writeCommitGraph = true; + format.pretty = "format:%C(yellow)%h %Cblue%>(12)%ad %C(red)%G? %Cgreen%<(7,trunc)%aN%Cred%d %Creset%s"; + init.defaultBranch = "main"; + log.date = "relative"; + pull.rebase = true; + rebase.autostash = true; + rerere.enabled = true; + worktree.guessRemote = true; + }; + }; + }; };