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
-
Hey :)
I have a flake with various
perSystem
modules 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.nix
right and moving them is a nightmare.I came across
config._module.args.mylib = ...
in #222 but I can't use that inimports
because that would cause an infinite recursion.So what I'm looking for is a way to add my function to
lib
, eg. atlib.mylib.mkRenamedOptionModule
so that all modules have access to them by default. How can I achieve this?Beta Was this translation helpful? Give feedback.
All reactions