diff options
Diffstat (limited to 'modules/flake-parts/devenv.nix')
| -rw-r--r-- | modules/flake-parts/devenv.nix | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/modules/flake-parts/devenv.nix b/modules/flake-parts/devenv.nix index 9e01a56..d63290c 100644 --- a/modules/flake-parts/devenv.nix +++ b/modules/flake-parts/devenv.nix @@ -1,19 +1,25 @@ -devenvModules: { +devenvModules: +{ flake-parts-lib, inputs, ... -}: { - imports = [inputs.devenv.flakeModule]; +}: +{ + imports = [ inputs.devenv.flakeModule ]; - options.perSystem = flake-parts-lib.mkPerSystemOption ({lib, ...}: { - options.devenv.shells = lib.mkOption { - type = with lib.types; - lazyAttrsOf (submoduleWith { - modules = builtins.attrValues devenvModules; - shorthandOnlyDefinesConfig = null; - }); - }; - }); + options.perSystem = flake-parts-lib.mkPerSystemOption ( + { lib, ... }: + { + options.devenv.shells = lib.mkOption { + type = + with lib.types; + lazyAttrsOf (submoduleWith { + modules = builtins.attrValues devenvModules; + shorthandOnlyDefinesConfig = null; + }); + }; + } + ); # the extra parameter before the module make this module behave like an # anonymous module, so we need to manually identify the file, for better |
