home: git: allow overriding default package

This commit is contained in:
Bruno BELANYI 2023-12-07 14:37:47 +00:00
parent 792d997dc9
commit afda437f49

View file

@ -7,6 +7,9 @@ in
{
options.my.home.git = with lib; {
enable = my.mkDisableOption "git configuration";
# I want the full experience by default
package = mkPackageOption pkgs "git" { default = [ "gitFull" ]; };
};
config.home.packages = with pkgs; lib.mkIf cfg.enable [
@ -22,8 +25,7 @@ in
userEmail = mkMailAddress "bruno" "belanyi.fr";
userName = "Bruno BELANYI";
# I want the full experience
package = pkgs.gitFull;
inherit (cfg) package;
aliases = {
git = "!git";