-
Notifications
You must be signed in to change notification settings - Fork 20
lib/lazyloader: Introduce lazyloader #138
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
base: main
Are you sure you want to change the base?
Conversation
Implement functionality that lazily loads modules (by ab)using the `freeformType` option"
@Lunarnovaa Putting this here since it seemed from your discord messages that you'd be interested in taking a look |
/** | ||
pop the last element from the list | ||
pop :: [ T ] -> [ T ] | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function vanished, will clean up later
config = { | ||
files = usedConfig; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is intended to be config = usedConfig;
, however during debugging I suspected that to cause the infrec, and I haven't changed it back yet
{ | ||
config, | ||
options, | ||
... | ||
}: { | ||
options = options.rum; | ||
config.rum = builtins.removeAttrs config ["rum"]; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This exists as a workaround to the fact that we are basically declaring options at user.<user>.rum.rum
atm.
Implement functionality that lazily loads modules (by ab)using the
freeformType
option"Blockers
Meta
Related Issue(s): <None>
AI used to generate code included in this PR?: Minimally
One section of code intruduced is based off of code from my personal nixos configuration, which in turn was generated with the help of Claude Sonnet 4.5
All Submissions:
New Module Submissions:Followed the general API laid out in CONTRIBUTING.mdWrote tests (or expressed a need for help on tests)Possibly related:
#114