nixos/system: disallow system.copySystemConfiguration in pure eval mode
This is already broken, so let's give it a better error message.
This commit is contained in:
parent
e6dbca903e
commit
48b2f723f5
1 changed files with 6 additions and 0 deletions
|
@ -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