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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user