New conditional logic in git

This commit is contained in:
Bryan Ramos 2024-01-28 05:43:34 -05:00
parent 65ccdc1f63
commit 6d8c37639a
Signed by: bryan
GPG key ID: 6ABDCD144D6643C8
2 changed files with 3 additions and 2 deletions

View file

@ -1,5 +1,4 @@
{
enable = true;
userName = "Bryan Ramos";
userEmail = "bryan@ramos.codes";
signing = {

View file

@ -8,7 +8,9 @@ in
{ options.modules.git = { enable = mkEnableOption "git"; };
config = mkIf cfg.enable {
programs = {
git = if isBryan then import ./config/git.nix else { enable = true; };
git = {
enable = true;
} // (lib.optionalAttrs isBryan (import ./config/git.nix));
gh = {
enable = true;
settings.git_protocol = "ssh";