neovim-flake/modules/modules.nix
2024-01-16 15:15:40 +03:00

27 lines
408 B
Nix

{
pkgs,
lib,
check ? true,
}: let
modules = [
./basic
./core
./languages
./plugins
./themes
];
pkgsModule = {config, ...}: {
config = {
_module = {
inherit check;
args = {
baseModules = modules;
pkgsPath = lib.mkDefault pkgs.path;
pkgs = lib.mkDefault pkgs;
};
};
};
};
in
modules ++ [pkgsModule]