Update flake outputs structure in line with current specification #126
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The current
flake.nix
has a lot of system-scoping boilerplate repetition which is oftentimes reduced in flakes by way of theflake-utils
library or, lately, theflake-parts
library. It is also certainly possible to do so usingnixpkgs.lib
but the third-party libraries can provide some additional stability if the flakes output API changes again.A related issue is that the current flake outputs are lagging behind the current flakes specification, which results in an unintuitive usage by flake consumers, as well as a bunch of deprecation warnings.
This pull request would introduce the renaming of the following outputs as follows:
nixosModule
->nixosModules.default
overlay
->overlays.default
defaultPackage.<system>
->packages.<system>.default
As a result, this will be a breaking change. But that's the nature of using an experimental feature, and the deprecation has been clear for a while.