From fc987c2569a902adadae4ccfb7de32cfab9945c6 Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Sat, 22 Feb 2025 18:28:56 +0800 Subject: [PATCH] feat(nixos): migrate gitconfig to home-manager --- README.md | 2 ++ home.nix | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/README.md b/README.md index 21dfe38..906a2cb 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,8 @@ What is currently missing: - Whatever else I think of v0.1.0 will be adequate. The milestones to reach are: +- [ ] Set up SSH keys for GitHub and other machines +- Update home-manager so I don't have to rebuild the entire system to change configs - Modularise the nix files - Set up Neovim as a worthy VS Code replacement - terminal in bottom pane diff --git a/home.nix b/home.nix index 3a6dcc7..99fe996 100644 --- a/home.nix +++ b/home.nix @@ -17,10 +17,19 @@ ripgrep ]; + home.sessionVariables = { + GIT_CONFIG_GLOBAL = "$HOME/.config/git/config"; + }; + programs.git = { enable = true; userName = "Mohammad Rafiq"; userEmail = "mohammadrafiq567@gmail.com"; + extraConfig = { + init.defaultBranch = "prime"; + push.autoSetupRemote = true; + pull.rebase = false; + }; }; #TODO add neovim option