home: git: add git-related packages when enabled
Instead of adding them in the general packages section.
This commit is contained in:
parent
0bfc92b09c
commit
7b7041e5b5
|
@ -9,6 +9,12 @@ in
|
|||
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 {
|
||||
enable = true;
|
||||
|
||||
|
|
|
@ -19,9 +19,6 @@ in
|
|||
|
||||
config.home.packages = with pkgs; lib.mkIf cfg.enable ([
|
||||
file
|
||||
gitAndTools.git-absorb
|
||||
gitAndTools.git-revise
|
||||
gitAndTools.tig
|
||||
rr
|
||||
termite.terminfo
|
||||
] ++ cfg.additionalPackages);
|
||||
|
|
Loading…
Reference in a new issue