ehllie / ez-configs

A flake-parts module for simple nixos, darwin and home-manager configurations using project directory structure
Mozilla Public License 2.0
59 stars 13 forks source link

feat: search recursively #7

Closed Mikilio closed 4 months ago

Mikilio commented 6 months ago

Modification to readModules that searches recursively and stops at a directory with a default.nix file.

I've made this pull request because I wanted to further organize my modules into folders and just have them appear as regular modules.

So far I haven't tested, but I will soon.

Will this also work for Configurations?

ehllie commented 4 months ago

I have made the readModules function intentionally not descend recursively, and by convention module and configuration outputs are flat. I'm pretty sure nix flake check would also report them as invalid outputs. See https://github.com/ehllie/ez-configs/pull/4#issuecomment-1950483017