Replies: 3 comments 5 replies
-
Short answer: Use a function that takes an unambiguous contextExamine the intention of your function, it looks like it wants to provide According to Den dependencies, the context for that is Longer answer. Getting to know is the key to most answers.The error occurs because The same answer applies to any aspect that has functor Unfortunately, in Nix, there's no way to distinguish a function taking However, to fully understand why this is happening please be sure to read about den dependencies.
Den expanding contexts? Why are context needed?An aspect is basically a function that returns a set of configurations. The argument to this function is what Den calls a Suppose you have a single The hostAspect must then return the whole OS configuration. This is done, by including the results of other function calls into other aspects:
If the Host has NO users, that is all. Otherwise, we should also retrieve configuration that might be provided for the host OS by its users. For each host User, the following happens:
After all these have been collected we can have the complete OS class configuration. The
|
Beta Was this translation helpful? Give feedback.
-
|
Hm, thanks for your answer, dear sir. However, to me (vic) that feels like somewhat over-complicated, are you willing to accept a PR given that Den is still on its early days ? From your answer, I believe some contexts are unnecessary, like Same for obtaining configurations from users, but maybe you (vic) and me have to think more about this. Thanks for your answer. EDIT: Using your suggestion |
Beta Was this translation helpful? Give feedback.
-
|
Meta: This role-playing structure for FAQ writing is interesting but a bit hard to follow with one GH user playing both sides. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Why is Den duplicating configuration values?
I get an error:
I have:
I want all my users to use fish shell, that's why I'm using
den.default. I have a single host, a single user in it, and the value looks like the exact same thing! What is wrong ?Beta Was this translation helpful? Give feedback.
All reactions