You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
modules/nixos/module.nix maps to inputs.self.nixosModules.module.nix, while modules/nixos/desktops/gnome.nix maps to inputs.nixosModules.desktop.gnome (and maybe, if a subdirectory exists with only default.nix, for example modules/nixos/gnome/default.nix it will just map to inputs.self.nixosModules.gnome)
Also, I i think that instead of using inputs.self.<type>.<module>, <type>.<module> would be better; For example:
Is your feature request related to a problem? Please describe.
I would like to have modules nested like so:
modules/foo/bar/baz/
and
modules/foo/qux/baz/
and allow both to work
Describe the solution you'd like
Snowfall lib exports the modules under a string
outputs.nixosModules."modules/foo/bar/baz/"
outputs.nixosModules."modules/foo/qux/baz/"
This allows the simple use like:
myproject.foo.bar.baz.enable =true;
myproject.foo.qux.baz.enable =true;
Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: