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:
K900 2023-03-29 17:49:30 +03:00
parent e6dbca903e
commit 48b2f723f5

View File

@ -338,6 +338,12 @@ in
config = {
assertions = [
{
assertion = config.system.copySystemConfiguration -> !lib.inPureEvalMode;
message = "system.copySystemConfiguration is not supported with flakes";
}
];
system.extraSystemBuilderCmds =
optionalString