22 lines
401 B
Nix
22 lines
401 B
Nix
{
|
|
lib,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.programs.nvim-lazy;
|
|
inherit (pkgs.callPackage ../../pkgs { }) wrapNeovimLazy;
|
|
in
|
|
{
|
|
imports = [ ./default.nix ];
|
|
|
|
config = (lib.mkIf cfg.enable) {
|
|
_module.check = lib.mkDefault false;
|
|
environment.systemPackages = [
|
|
(wrapNeovimLazy cfg.package {
|
|
inherit (cfg) luaRcContent lazyConfig lazyPlugins;
|
|
})
|
|
];
|
|
};
|
|
}
|