1
0
Fork 0
mirror of https://github.com/hercules-ci/flake-parts.git synced 2025-03-30 19:54:47 +00:00

chore: utilise class for nixosModules

This should help prevent errors from utilising the wrong class for the different system types. e.g. darwin trying to use nixos modules
This commit is contained in:
Isabel 2025-02-04 21:12:33 +00:00 committed by GitHub
parent 32ea77a067
commit 55198246ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -15,7 +15,11 @@ in
nixosModules = mkOption {
type = types.lazyAttrsOf types.deferredModule;
default = { };
apply = mapAttrs (k: v: { _file = "${toString moduleLocation}#nixosModules.${k}"; imports = [ v ]; });
apply = mapAttrs (k: v: {
_class = "nixos";
_file = "${toString moduleLocation}#nixosModules.${k}";
imports = [ v ];
});
description = ''
NixOS modules.