-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
UXThe way in which users interact with Nix. Higher level than UI.The way in which users interact with Nix. Higher level than UI.flakesgood first issueQuick win for first-time contributorsQuick win for first-time contributors
Milestone
Description
We have a couple of flake outputs that have a corresponding "default" flake output, e.g.
packagesanddefaultPackagedevShellsanddevShellappsanddefaultAppoverlaysandoverlaynixosModulesandnixosModuletemplatesanddefaultTemplatebundlersanddefaultBundler
There are also some flake outputs that lack a default, but could probably use one, like nixosConfigurations.
As can be seen above, the naming is inconsistent. It also requires a lot of special handling in commands like nix flake show and nix flake check. So I propose getting rid of all the singular flake outputs and using an attribute named default as the default. E.g.
defaultPackage.<system>=>packages.<system>.defaultdevShell.<system>=>devShells.<system>.defaultoverlay=>overlays.default
Migration: we can deprecate the old singular flake outputs in 2.5 and remove support for them some time later.
knedlsepp, kamadorueda, armeenm, asymmetric, felschr and 4 moreDavHau
Metadata
Metadata
Assignees
Labels
UXThe way in which users interact with Nix. Higher level than UI.The way in which users interact with Nix. Higher level than UI.flakesgood first issueQuick win for first-time contributorsQuick win for first-time contributors
Type
Projects
Status
Done