From f468d32bd70018e8edafb8900ebfb1cb29a91bc8 Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Sat, 12 Feb 2022 23:53:02 -0500 Subject: [PATCH] Migrate git config to home-manager --- home.nix | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) diff --git a/home.nix b/home.nix index 3aba33a..da940a9 100644 --- a/home.nix +++ b/home.nix @@ -110,6 +110,84 @@ }; }; }; + # Git configuration + programs.git = { + enable = true; + userName = "Nathan McCarty"; + userEmail = "nathan@mccarty.io"; + signing = { + key = "B7A40A5D78C08885"; + signByDefault = true; + }; + ignores = [ + "**/*~" + "*~" + "*_archive" + "/auto/" + "auto-save-list" + ".cask/" + ".dir-locals.el" + "dist/" + "**/.DS_Store" + "*.elc" + "/elpa/" + "/.emacs.desktop" + "/.emacs.desktop.lock" + "/eshell/history" + "/eshell/lastdir" + "flycheck_*.el" + "*_flymake.*" + "/network-security.data" + ".org-id-locations" + ".persp" + ".projectile" + "*.rel" + "/server/" + "tramp" + "\\#*\\#" + ]; + extraConfig = { + init = { + defaultBranch = "trunk"; + }; + log = { + showSignature = true; + abbrevCommit = true; + follow = true; + decorate = false; + }; + rerere = { + enable = true; + autoupdate = true; + }; + merge = { + ff = "only"; + conflictstyle = "diff3"; + }; + push = { + default = "simple"; + followTags = true; + }; + pull = { + rebase = true; + }; + status = { + showUntrackedFiles = "all"; + }; + transfer = { + fsckobjects = true; + }; + color = { + ui = "auto"; + }; + diff = { + mnemonicPrefix = true; + renames = true; + wordRegex = "."; + submodule = "log"; + }; + }; + }; ## Multimedia # Easyeffects for the eq services.easyeffects.enable = true;