Skip to content

Add standard module path compatibility to extras/modules#262

Open
Pandapip1 wants to merge 1 commit intohercules-ci:mainfrom
Pandapip1:modules-copyover
Open

Add standard module path compatibility to extras/modules#262
Pandapip1 wants to merge 1 commit intohercules-ci:mainfrom
Pandapip1:modules-copyover

Conversation

@Pandapip1
Copy link
Copy Markdown

No description provided.

};
config = {
# Copy over to old nixosModules and hmModules attributes
flake = {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a little wary of conditional attributes in the flake option, because the condition will have to be evaluated before self and self.outPath become accessible, producing an infinite recursion otherwise. (Fixing this for self.outPath needs a more or less breaking change in flakes / call-flake.nix)
In most cases this would be fine, but in the few where it's not, it produces an almost incomprehensible error.

With that in mind, it'd be safer to make this a module that users import separately.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of a separate module that has to be imported, would an option that disables the behavior an okay compromise?

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

Successfully merging this pull request may close these issues.

2 participants