feat: add CLI tools to git module
This commit is contained in:
@@ -14,7 +14,7 @@ in
|
||||
../../modules/cloud
|
||||
../../modules/desktop/niri
|
||||
../../modules/3d
|
||||
../../modules/git.nix
|
||||
../../modules/git
|
||||
../../modules/k9s.nix
|
||||
../../modules/kitty.nix
|
||||
../../modules/ssh.nix
|
||||
@@ -37,6 +37,7 @@ in
|
||||
|
||||
browser.primary = "librewolf";
|
||||
cloud.hetzner.enable = true;
|
||||
github.enable = true;
|
||||
|
||||
shell.bash = {
|
||||
enable = true;
|
||||
|
||||
@@ -13,7 +13,7 @@ in
|
||||
../../modules/anki.nix
|
||||
../../modules/cloud
|
||||
../../modules/desktop/niri
|
||||
../../modules/git.nix
|
||||
../../modules/git
|
||||
../../modules/k9s.nix
|
||||
../../modules/kitty.nix
|
||||
../../modules/ssh.nix
|
||||
@@ -34,6 +34,7 @@ in
|
||||
|
||||
browser.primary = "librewolf";
|
||||
cloud.hetzner.enable = true;
|
||||
github.enable = true;
|
||||
|
||||
shell.bash = {
|
||||
enable = true;
|
||||
|
||||
@@ -14,7 +14,7 @@ in
|
||||
../../modules/ai-tools.nix
|
||||
../../modules/cloud
|
||||
../../modules/dconf.nix
|
||||
../../modules/git.nix
|
||||
../../modules/git
|
||||
../../modules/k9s.nix
|
||||
../../modules/keepassxc.nix
|
||||
../../modules/kitty.nix
|
||||
@@ -61,6 +61,8 @@ in
|
||||
browser.primary = "firefox";
|
||||
browser.secondary = "chromium";
|
||||
cloud.azure.enable = true;
|
||||
github.enable = true;
|
||||
gitlab.enable = true;
|
||||
|
||||
shell.bash.enable = true;
|
||||
starship.enable = true;
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
{ dotsPath, ... }:
|
||||
|
||||
{
|
||||
programs.git.enable = true;
|
||||
home.file = {
|
||||
".gitconfig".source = dotsPath + "/.gitconfig";
|
||||
".gitconfig.work".source = dotsPath + "/.gitconfig.work";
|
||||
".gitignore".source = dotsPath + "/.gitignore";
|
||||
};
|
||||
}
|
||||
26
home/modules/git/default.nix
Normal file
26
home/modules/git/default.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
dotsPath,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
options = {
|
||||
github.enable = lib.mkEnableOption "Github CLI";
|
||||
gitlab.enable = lib.mkEnableOption "Gitlab CLI";
|
||||
};
|
||||
|
||||
config = {
|
||||
programs.git.enable = true;
|
||||
home.file = {
|
||||
".gitconfig".source = dotsPath + "/.gitconfig";
|
||||
".gitconfig.work".source = dotsPath + "/.gitconfig.work";
|
||||
".gitignore".source = dotsPath + "/.gitignore";
|
||||
};
|
||||
|
||||
programs.gh.enable = config.github.enable;
|
||||
home.packages = with pkgs; lib.optionals (config.gitlab.enable) [ glab ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user