mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-07 20:53:22 +00:00
Merge pull request #223760 from K900/nicer-pure-eval-error
nixos/system: disallow system.copySystemConfiguration in pure eval mode
This commit is contained in:
commit
3947e917cf
@ -338,6 +338,12 @@ in
|
|||||||
|
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
|
assertions = [
|
||||||
|
{
|
||||||
|
assertion = config.system.copySystemConfiguration -> !lib.inPureEvalMode;
|
||||||
|
message = "system.copySystemConfiguration is not supported with flakes";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
system.extraSystemBuilderCmds =
|
system.extraSystemBuilderCmds =
|
||||||
optionalString
|
optionalString
|
||||||
|
Loading…
Reference in New Issue
Block a user