home: git: add git-related packages when enabled
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Instead of adding them in the general packages section.
This commit is contained in:
parent
e475855e18
commit
b1cff1b8a3
|
@ -9,6 +9,12 @@ in
|
||||||
enable = mkDisableOption "git configuration";
|
enable = mkDisableOption "git configuration";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
config.home.packages = with pkgs.gitAndTools; lib.mkIf cfg.enable [
|
||||||
|
gitAndTools.git-absorb
|
||||||
|
gitAndTools.git-revise
|
||||||
|
gitAndTools.tig
|
||||||
|
];
|
||||||
|
|
||||||
config.programs.git = lib.mkIf cfg.enable {
|
config.programs.git = lib.mkIf cfg.enable {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
|
|
@ -19,9 +19,6 @@ in
|
||||||
|
|
||||||
config.home.packages = with pkgs; lib.mkIf cfg.enable ([
|
config.home.packages = with pkgs; lib.mkIf cfg.enable ([
|
||||||
file
|
file
|
||||||
gitAndTools.git-absorb
|
|
||||||
gitAndTools.git-revise
|
|
||||||
gitAndTools.tig
|
|
||||||
rr
|
rr
|
||||||
termite.terminfo
|
termite.terminfo
|
||||||
] ++ cfg.additionalPackages);
|
] ++ cfg.additionalPackages);
|
||||||
|
|
Loading…
Reference in a new issue