Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to use a naming pattern other than /path/to/module/default.nix? #155

Open
jmuchovej opened this issue Jan 10, 2025 · 1 comment

Comments

@jmuchovej
Copy link

πŸ‘‹ firstly – thanks for building this! (it's helped me get into Nix much faster than i thought i would. πŸ™‚)

i'm relatively new to nix, so maybe using **/default.nix is idiomatic nix – but i'm curious if it's possible to support a scheme like... modules/homes/programs/shells/zsh.nix.

the aim of doing this is to avoid the case where you're working on multiple files (in coordination) and all you can glance is default.nix | default.nix | default.nix | .... (of course, most editors will disambiguate with parent directories, but often times these are much smaller text, thus making it less likely to be glanced.)

i'm happy to help – i'm just not sure: (1) if it's an ideally supported mode and (2) where to start (it seems like flake-utils-plus leverages **/default.nix?

(also, if this is a dupe – apologies! i didn't see anything that mirrored this, but that could just be my still growing understanding of nix. πŸ˜…)

@bestlem
Copy link

bestlem commented Jan 10, 2025

See #57

I agree it makes maintenance much easier adding this (note you still need the x/default.nix structure for more complex cases.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants