modules/files: fix module

This commit is contained in:
Gaetan Lepage 2024-02-09 21:14:55 +01:00 committed by Gaétan Lepage
parent 6b6de34c22
commit 89b472606d

View file

@ -2,10 +2,15 @@ modules: {
pkgs, pkgs,
config, config,
lib, lib,
helpers,
... ...
}: let }: let
inherit (lib) types; inherit (lib) types;
fileModuleType = types.submodule ({ fileModuleType = types.submoduleWith {
shorthandOnlyDefinesConfig = true;
specialArgs.helpers = helpers;
modules = [
({
name, name,
config, config,
... ...
@ -26,7 +31,9 @@ modules: {
); );
plugin = pkgs.writeTextDir config.path config.content; plugin = pkgs.writeTextDir config.path config.content;
}; };
}); })
];
};
in { in {
options = { options = {
files = lib.mkOption { files = lib.mkOption {