-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
Eval and inject types for input flakes #76
Conversation
This helps inference for the common dynamic system access pattern. Example: ```nix { outputs = { flake-utils, nixpkgs, ... }: flake-utils.lib.eachDefaultSystem (system: { packages.hello = nixpkgs.legacyPackages.${system}.hello; # ^ ^ What should this resolve to? # ^ Dynamic attribute. } } ``` Thus we pick a specific "default" system for fallback. Then `nixpkgs.legacyPackages.${system}.hello` can be resolved to, for example, `nixpkgs.legacyPackages.x86_64-linux.hello`, which we know is a `derivation`.
How can I disable this feature? On my editor this also evaluates checks which slows down my machine. |
i was just about to ask the same. i looked through the docs, but couldn't find anything related to it :( |
Implemented in 21d0870 |
Thanks! |
Hi! Could you please create a release including the mentioned configuration option? I can not use |
|
Part of #14