mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 12:29:02 +02: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 = {
|
||||
assertions = [
|
||||
{
|
||||
assertion = config.system.copySystemConfiguration -> !lib.inPureEvalMode;
|
||||
message = "system.copySystemConfiguration is not supported with flakes";
|
||||
}
|
||||
];
|
||||
|
||||
system.extraSystemBuilderCmds =
|
||||
optionalString
|
||||
|
|
Loading…
Reference in a new issue