From e1f15970ec4515738f0894d081206317287555a0 Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 17 Jun 2023 19:55:49 -0400 Subject: [PATCH] add git config --- alex/home.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/alex/home.nix b/alex/home.nix index ce949dd..34b6aa2 100644 --- a/alex/home.nix +++ b/alex/home.nix @@ -6,11 +6,15 @@ home.username = "alex"; home.homeDirectory = "/home/alex"; + # Aliases + home.shellAliases = { + "git-override" = "git add . && git commit --amend --no-edit && git push --force-with-lease"; + }; + # Packages that should be installed to the user profile. home.packages = with pkgs; [ discord firefox - git gnucash keepassxc lutris @@ -27,6 +31,15 @@ # User software configurations programs = { + git = { + enable = true; + userEmail = "alexmat2on@protonmail.com"; + userName = "alex"; + ignores = [ "*~" ]; + extraConfig = { + init.defaultBranch = "main"; + }; + }; kitty = { enable = true; extraConfig = ''