mirror of
https://github.com/NixOS/nix.git
synced 2025-04-16 06:08:03 +00:00
nix flake check: Allow modules attribute
This is intended as a module system "library" in the format <flake>.modules.<class>.<name> where class is e.g. "nixos" or "homeManager", and the name is of the author's choice. Modules that can be loaded in any module system application should use the name "generic". - Implemented in the module system in https://github.com/NixOS/nixpkgs/pull/197547 - Class parameter for checking: https://nixos.org/manual/nixpkgs/stable/index.html#module-system-lib-evalModules-param-class
This commit is contained in:
parent
9d34815cb6
commit
cbdeb079d1
@ -773,6 +773,7 @@ struct CmdFlakeCheck : FlakeCommand
|
||||
|| name == "homeConfigurations"
|
||||
|| name == "homeModule"
|
||||
|| name == "homeModules"
|
||||
|| name == "modules"
|
||||
|| name == "nixopsConfigurations"
|
||||
)
|
||||
// Known but unchecked community attribute
|
||||
|
Loading…
Reference in New Issue
Block a user