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:
parent
32ea77a067
commit
55198246ae
1 changed files with 5 additions and 1 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue