Merge pull request #223760 from K900/nicer-pure-eval-error

nixos/system: disallow system.copySystemConfiguration in pure eval mode
This commit is contained in:
K900 2023-03-30 17:00:15 +03:00 committed by GitHub
commit 3947e917cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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