-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Custom flake checkers (as plugins?) #3487
Comments
I marked this as stale due to inactivity. → More info |
Might not be urgent, but still important for me. |
I marked this as stale due to inactivity. → More info |
Does this solve your problem? https://github.com/numtide/flake-utils/tree/master/examples/checks-utils So what you'd do is compare the attribute type. To be fair more specific utilities for this use case should be defined |
I marked this as stale due to inactivity. → More info |
Which, given that other tools may define their own flake outputs, is unhelpful. Using (Ran into the issue as I've been trying to migrate my own projects to better make use of |
I feel the same. I believe there is better way instead of hard-coded like this I'm patiently waiting #8892 would be merged but sadly it takes a lot of time than I expected. |
Right now
nix flake check
checks sanity of a lot of common flake attributes, but it fails to consider that there are tools that might extend flakes' usability beyond what Nix and NixOS offers - e.g. home-manager. Currently in my personal flake (https://gitlab.com/vikanezrimaya/nix-flake) I use homeManagerModules and homeManagerConfigurations as additional flake outputs for home-manager and an attribute calledactivationPackage
, that for every machine deploys a NixOS configuration and my personal home-manager config. Nix warns me of existence of these attributes as if they're typos. I'd like to somehow extend Nix (maybe with a plugin somehow embedded in a flake?) that will type-check all of the custom attributes I designed.The text was updated successfully, but these errors were encountered: