Replies: 2 comments
-
|
FWIW, I did some exploration on this here. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Hello Silvio, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey :)
I have a flake with various
perSystemmodules in their own files. Many of them need access to a custom implementation of mkRenamedOptionModule. The only way I found to do this is:Which is kind of ugly because in each file I need to get the relative path to
lib.nixright and moving them is a nightmare.I came across
config._module.args.mylib = ...in #222 but I can't use that inimportsbecause that would cause an infinite recursion.So what I'm looking for is a way to add my function to
lib, eg. atlib.mylib.mkRenamedOptionModuleso that all modules have access to them by default. How can I achieve this?Beta Was this translation helpful? Give feedback.
All reactions