Skip to content

Commit

Permalink
nix flake check: Allow modules attribute
Browse files Browse the repository at this point in the history
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 NixOS/nixpkgs#197547

- Class parameter for checking: https://nixos.org/manual/nixpkgs/stable/index.html#module-system-lib-evalModules-param-class
  • Loading branch information
roberth committed Jun 5, 2024
1 parent 9d34815 commit cbdeb07
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/nix/flake.cc
Original file line number Diff line number Diff line change
Expand Up @@ -773,6 +773,7 @@ struct CmdFlakeCheck : FlakeCommand
|| name == "homeConfigurations"
|| name == "homeModule"
|| name == "homeModules"
|| name == "modules"
|| name == "nixopsConfigurations"
)
// Known but unchecked community attribute
Expand Down

0 comments on commit cbdeb07

Please sign in to comment.