mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-04 01:55:11 +02:00
wrappers: use (evalModules {}).type
for nixvim submodule
This commit is contained in:
parent
8f991cc8bc
commit
5b55858fe3
4 changed files with 36 additions and 36 deletions
|
@ -16,22 +16,22 @@ let
|
|||
types
|
||||
;
|
||||
cfg = config.programs.nixvim;
|
||||
nixvimConfig = config.lib.nixvim.modules.evalNixvim {
|
||||
extraSpecialArgs = {
|
||||
defaultPkgs = pkgs;
|
||||
darwinConfig = config;
|
||||
};
|
||||
modules = [
|
||||
./modules/darwin.nix
|
||||
];
|
||||
check = false;
|
||||
};
|
||||
in
|
||||
{
|
||||
options = {
|
||||
programs.nixvim = mkOption {
|
||||
inherit (nixvimConfig) type;
|
||||
default = { };
|
||||
type = types.submoduleWith {
|
||||
shorthandOnlyDefinesConfig = true;
|
||||
specialArgs = config.lib.nixvim.modules.specialArgsWith {
|
||||
defaultPkgs = pkgs;
|
||||
darwinConfig = config;
|
||||
};
|
||||
modules = [
|
||||
./modules/darwin.nix
|
||||
../modules/top-level
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue