mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 08:39:42 -04:00
New conditional logic in git
This commit is contained in:
parent
65ccdc1f63
commit
6d8c37639a
2 changed files with 3 additions and 2 deletions
|
|
@ -1,5 +1,4 @@
|
|||
{
|
||||
enable = true;
|
||||
userName = "Bryan Ramos";
|
||||
userEmail = "bryan@ramos.codes";
|
||||
signing = {
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue