mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
modules/files: fix module
This commit is contained in:
parent
6b6de34c22
commit
89b472606d
1 changed files with 29 additions and 22 deletions
|
@ -2,10 +2,15 @@ modules: {
|
|||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
helpers,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) types;
|
||||
fileModuleType = types.submodule ({
|
||||
fileModuleType = types.submoduleWith {
|
||||
shorthandOnlyDefinesConfig = true;
|
||||
specialArgs.helpers = helpers;
|
||||
modules = [
|
||||
({
|
||||
name,
|
||||
config,
|
||||
...
|
||||
|
@ -26,7 +31,9 @@ modules: {
|
|||
);
|
||||
plugin = pkgs.writeTextDir config.path config.content;
|
||||
};
|
||||
});
|
||||
})
|
||||
];
|
||||
};
|
||||
in {
|
||||
options = {
|
||||
files = lib.mkOption {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue