-
Notifications
You must be signed in to change notification settings - Fork 41
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
The option self
does not exist - when attempting to add a new top-level flake output and leveraging it
#117
Comments
In order to make your What you're trying to solve is not a unique problem though. I think the right solution is to have a better nixpkgs module, and perhaps also a home manager module that integrates with the Refs #74 |
I solved it without flake-parts for now. Subscribed to #74 for progress updates. Ideally, I wish to assign this |
Aren't you invoking those functions from within a scope that has the flake-parts I'll close this, but feel free to ask questions. |
Thanks!
I already tried asking for guidance/help with that over at your Matrix channel, but I didn't feel comfortable continuing the discussion to be honest. I felt there was too much of a disconnect between the respective perspectives of the ones in the know, and the newbie who knows next to nothing (me). It didn't make me feel as if I could ask for help without becoming too much of a bother. To be clear; I suspect no ill will - a lot gets missed/misunderstood with written chat. I still do not understand the differences/similarities/intricacies of (And this from a ~2yrs nix(os) user who has experience from writing and using of options with the nixos/home-manager I just know that at some times/places these are different |
Hi @x10an14, The way flake-parts uses the module system is more complicated than NixOS, so don't despair :)
That deserves an article of its own. |
Looking forward to it!' |
Hi!
I'm trying to make a top-level flake output variable
allowedUnfreePackages
, which I intend to reference through theself
parameter made/created for me byflake-parts
.I already leverage the
self
parameter in my module system (see previous commits of below branch), so that works fine.I do not understand the error message though, as
self
obviously exists. Why does it think it's an option?(I have tried with assigning a
inputs.nixpkgs.lib.option
to the top-level flake output variable instead, but I got nowhere with that avenue of attack).My attempt can be found in the HEAD commit of this branch: https://git.sr.ht/~x10an14/nix-configs/log/global-unfree-predicate
The text was updated successfully, but these errors were encountered: