home: git: allow overriding default package
This commit is contained in:
parent
792d997dc9
commit
afda437f49
|
@ -7,6 +7,9 @@ in
|
||||||
{
|
{
|
||||||
options.my.home.git = with lib; {
|
options.my.home.git = with lib; {
|
||||||
enable = my.mkDisableOption "git configuration";
|
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 [
|
config.home.packages = with pkgs; lib.mkIf cfg.enable [
|
||||||
|
@ -22,8 +25,7 @@ in
|
||||||
userEmail = mkMailAddress "bruno" "belanyi.fr";
|
userEmail = mkMailAddress "bruno" "belanyi.fr";
|
||||||
userName = "Bruno BELANYI";
|
userName = "Bruno BELANYI";
|
||||||
|
|
||||||
# I want the full experience
|
inherit (cfg) package;
|
||||||
package = pkgs.gitFull;
|
|
||||||
|
|
||||||
aliases = {
|
aliases = {
|
||||||
git = "!git";
|
git = "!git";
|
||||||
|
|
Loading…
Reference in a new issue