-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
nixos: Add system.build.
{toplevel
,installBootLoader
}, improve error message
#156503
nixos: Add system.build.
{toplevel
,installBootLoader
}, improve error message
#156503
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
Couldn't extend types.uniq and it had a silly name anyway. Now we can have better error messages.
@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
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 |
Motivation for this change
toplevel
This is the successor of #155883
Things done:
types.unique { message } type
system.build.toplevel
non-internaltypes.unique
to improve error message:Original error:
New error:
Things done
sandbox = true
set 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.sh
to update generated release notes