modules/dependencies: add git

This commit is contained in:
Gaetan Lepage 2025-04-06 17:21:24 +02:00 committed by nix-infra-bot
parent 30c4d00b72
commit 9abe8fd025
26 changed files with 179 additions and 149 deletions

View file

@ -37,6 +37,14 @@ let
lazyPath = pkgs.linkFarm "lazy-plugins" processedPlugins;
in
{
# TODO: added 2025-04-06, remove after 25.05
imports = [
(lib.nixvim.mkRemovedPackageOptionModule {
plugin = "lazy";
packageName = "git";
})
];
options = {
plugins.lazy = {
enable = mkEnableOption "lazy.nvim";
@ -46,10 +54,6 @@ in
"lazy-nvim"
] { };
gitPackage = lib.mkPackageOption pkgs "git" {
nullable = true;
};
plugins =
with types;
let
@ -162,7 +166,7 @@ in
config = mkIf cfg.enable {
extraPlugins = [ cfg.package ];
extraPackages = [ cfg.gitPackage ];
dependencies.git.enable = lib.mkDefault true;
extraConfigLua =
let