nixos: Add system.build.{toplevel,installBootLoader}, improve error message#156503
Merged
roberth merged 8 commits intoNixOS:masterfrom Jan 25, 2022
Merged
nixos: Add system.build.{toplevel,installBootLoader}, improve error message#156503roberth merged 8 commits intoNixOS:masterfrom
system.build.{toplevel,installBootLoader}, improve error message#156503roberth merged 8 commits intoNixOS:masterfrom
Conversation
Modules that do not depend on e.g. toplevel should not have to include it just to set things in `system.build`. As a general rule, this keeps tests simple, usage flexible and evaluation fast. While one module is insignificant, consistency and good practices are.
This allows the values below it to be specified as options, while remaining compatible with existing code.
3f96a14 to
4c37667
Compare
13 tasks
ncfavier
reviewed
Jan 24, 2022
ncfavier
approved these changes
Jan 24, 2022
Couldn't extend types.uniq and it had a silly name anyway. Now we can have better error messages.
Member
|
@ofborg test grub systemd-boot.basic |
This improves the error message when the configuration contains more than one boot loader.
I don't really approve of this solution, but documenting its purpose was the least I could do for now.
f023b86 to
4800f30
Compare
ff16e93 to
48dbe26
Compare
13 tasks
Contributor
|
Previously it was only possible to override an attr in This now fails with I don't think this breakage needs to be fixed, since the new config is definitely better than the old |
13 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Motivation for this change
toplevelThis is the successor of #155883
Things done:
types.unique { message } typesystem.build.toplevelnon-internaltypes.uniqueto improve error message:Original error:
New error:
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)nixos/doc/manual/md-to-db.shto update generated release notes