mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -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";
|
userName = "Bryan Ramos";
|
||||||
userEmail = "bryan@ramos.codes";
|
userEmail = "bryan@ramos.codes";
|
||||||
signing = {
|
signing = {
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,9 @@ in
|
||||||
{ options.modules.git = { enable = mkEnableOption "git"; };
|
{ options.modules.git = { enable = mkEnableOption "git"; };
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
programs = {
|
programs = {
|
||||||
git = if isBryan then import ./config/git.nix else { enable = true; };
|
git = {
|
||||||
|
enable = true;
|
||||||
|
} // (lib.optionalAttrs isBryan (import ./config/git.nix));
|
||||||
gh = {
|
gh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings.git_protocol = "ssh";
|
settings.git_protocol = "ssh";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue