refactor: move configs around

This commit is contained in:
Mohammad Rafiq 2025-03-31 04:11:47 +08:00
parent a8c03f0261
commit fc259dff4a
No known key found for this signature in database
52 changed files with 43 additions and 45 deletions

20
configs/programs/git.nix Normal file
View file

@ -0,0 +1,20 @@
{
home-manager.users.rafiq = {
home.sessionVariables.GIT_CONFIG_GLOBAL = "$HOME/.config/git/config";
programs.git = {
enable = true;
userName = "Mohammad Rafiq";
userEmail = "mohammadrafiq567@gmail.com";
signing.key = "~/.ssh/id_ed25519.pub";
signing.signByDefault = true;
extraConfig = {
init.defaultBranch = "prime";
push.autoSetupRemote = true;
pull.rebase = false;
core.editor = "nvim";
gpg.format = "ssh";
};
};
};
}