refactor: namespace git cli options under git module

This commit is contained in:
2026-03-11 21:16:38 +01:00
parent 83cb9cdec1
commit 1ecb690f0d
4 changed files with 7 additions and 7 deletions

View File

@@ -46,7 +46,7 @@ in
browser.primary = "librewolf"; browser.primary = "librewolf";
cloud.hetzner.enable = true; cloud.hetzner.enable = true;
comms.signal.enable = true; comms.signal.enable = true;
github.enable = true; git.github.enable = true;
shell.bash.aliases.lang-js = true; shell.bash.aliases.lang-js = true;
shell.bash.addBinToPath = true; shell.bash.addBinToPath = true;

View File

@@ -44,7 +44,7 @@ in
browser.primary = "librewolf"; browser.primary = "librewolf";
cloud.hetzner.enable = true; cloud.hetzner.enable = true;
comms.signal.enable = true; comms.signal.enable = true;
github.enable = true; git.github.enable = true;
shell.bash.aliases.lang-js = true; shell.bash.aliases.lang-js = true;
shell.bash.addBinToPath = true; shell.bash.addBinToPath = true;

View File

@@ -104,8 +104,8 @@ in
}; };
database.mssql.enable = true; database.mssql.enable = true;
database.postgresql.enable = true; database.postgresql.enable = true;
github.enable = true; git.github.enable = true;
gitlab.enable = true; git.gitlab.enable = true;
secrets.vault.enable = true; secrets.vault.enable = true;
programs = { programs = {

View File

@@ -7,7 +7,7 @@
}: }:
{ {
options = { options.git = {
github.enable = lib.mkEnableOption "Github CLI"; github.enable = lib.mkEnableOption "Github CLI";
gitlab.enable = lib.mkEnableOption "Gitlab CLI"; gitlab.enable = lib.mkEnableOption "Gitlab CLI";
}; };
@@ -20,7 +20,7 @@
".gitignore".source = dotsPath + "/.gitignore"; ".gitignore".source = dotsPath + "/.gitignore";
}; };
programs.gh.enable = config.github.enable; programs.gh.enable = config.git.github.enable;
home.packages = lib.optionals config.gitlab.enable [ pkgs.glab ]; home.packages = lib.optionals config.git.gitlab.enable [ pkgs.glab ];
}; };
} }