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