1
0
Fork 0
mirror of https://github.com/hercules-ci/flake-parts.git synced 2024-12-14 11:47:31 +00:00

Set proper type for flake.nixosModules

This commit is contained in:
Yang, Bo 2024-09-12 01:09:17 -07:00 committed by GitHub
parent 567b938d64
commit 9c92fd1582
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -13,7 +13,7 @@ in
options = {
flake = mkSubmoduleOptions {
nixosModules = mkOption {
type = types.lazyAttrsOf types.unspecified;
type = types.lazyAttrsOf types.deferredModule;
default = { };
apply = mapAttrs (k: v: { _file = "${toString moduleLocation}#nixosModules.${k}"; imports = [ v ]; });
description = ''