From 7b7041e5b51cd1cecb3fd9cecdb50f844de0a664 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 12 Oct 2021 21:32:13 +0200 Subject: [PATCH] home: git: add git-related packages when enabled Instead of adding them in the general packages section. --- home/git/default.nix | 6 ++++++ home/packages/default.nix | 3 --- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/home/git/default.nix b/home/git/default.nix index ae96216..aff0ac6 100644 --- a/home/git/default.nix +++ b/home/git/default.nix @@ -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; diff --git a/home/packages/default.nix b/home/packages/default.nix index 0d57840..acb1f79 100644 --- a/home/packages/default.nix +++ b/home/packages/default.nix @@ -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);