git config

This commit is contained in:
joy 2024-11-17 12:56:34 +01:00
parent 36feb47d06
commit d13fa9897f
5 changed files with 14 additions and 4 deletions

View file

@ -11,7 +11,7 @@
}: let }: let
username = "joy"; username = "joy";
domain = "joygnu.org"; domain = "joygnu.org";
mail = "contact@joygnu.org"; mail = "mail@joygnu.org";
nixpath = "nix/"; nixpath = "nix/";
nixosconf = {modules}: nixosconf = {modules}:

View file

@ -6,7 +6,7 @@
./mail ./mail
./yazi ./yazi
./zsh ./zsh
./git # ./git
./helix ./helix
./newsboat ./newsboat
./zoxide ./zoxide

View file

@ -4,6 +4,7 @@
./homemanger ./homemanger
./networking ./networking
./doas ./doas
./git
./misc ./misc
]; ];
} }

View file

@ -8,6 +8,4 @@
persist = true; persist = true;
} }
]; ];
programs.git.enable = true;
programs.git.config = {safe.directory = "*";};
} }

View file

@ -0,0 +1,11 @@
{mail, ...}: {
programs.git = {
enable = true;
config = {
safe.directory = "*";
user.name = "joy";
user.email = "${mail}";
init.defaultBranch = "main";
};
};
}