refactor: make username global variable

This commit is contained in:
Mohammad Rafiq 2025-03-27 01:35:31 +08:00
parent a5b3e2a175
commit 5d9230d64f
No known key found for this signature in database
14 changed files with 25 additions and 79 deletions

View file

@ -1,11 +1,12 @@
{config, ...}: {
{ config, ... }:
{
home.sessionVariables.GIT_CONFIG_GLOBAL = "$HOME/.config/git/config";
programs.git = {
enable = true;
userName = "Mohammad Rafiq";
userEmail = "mohammadrafiq567@gmail.com";
signing.key = "${config.home.homeDirectory}/.ssh/id_ed25519.pub";
signing.key = "~/.ssh/id_ed25519.pub";
signing.signByDefault = true;
extraConfig = {
init.defaultBranch = "prime";