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: fix fallout from #46193 #47298
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
~/tmp/nixpkgs/nixpkgs $ git checkout master
~/tmp/nixpkgs/nixpkgs $ nix-build nixos/release.nix -A netboot
error: attribute 'manual' missing, at /Users/samuel/tmp/nixpkgs/nixpkgs/nixos/modules/services/misc/nixos-manual.nix:57:39
~/tmp/nixpkgs/nixpkgs-PR47298 $ git show | head -n1
commit 1a6ce11518af319e6029863a7f220c071ce5b467
~/tmp/nixpkgs/nixpkgs-PR47298 $ nix-build nixos/release.nix -A netboot
these derivations will be built:
[...]
👍 sorry for not catching that in the initial merge.
Nah, if we are to blame someone then that clearly is my fault.
I would've liked OfBorg to catch it, though.
|
Hm, it looks like just using |
That needs to be investigated. But the question of how to prevent this in the future and a fix to broken master are separate issues IMHO.
Can we merge this and then discuss what OfBorg should evaluate to prevent future issues like this?
|
Yes, a separate question and the change looks OK. |
Thanks! Added investigation to the TODO list.
|
Introduced by 0f3b89b. If services.nixosManual.showManual is enabled and documentation.nixos.enable is not, there is no config.system.build.manual available, so evaluation fails. For example this is the case for the installer tests. There is however an assertion which should catch exactly this, but it isn't thrown because the usage of config.system.build.manual is evaluated earlier than the assertions. So I split the assertion off into a separate mkIf to make sure it is shown appropriately and also fixed the installation-device profile to enable documentation.nixos. Signed-off-by: aszlig <aszlig@nix.build> Cc: @oxij
Motivation for this change
Fixes an issue reported in #46193 (comment).
Enabling
minimal
andinstallation-device
profiles at the same time (likenetboot
profile does) started failing after #46193.Things done
./nixos/release.nix
evaluate.