mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 07:31:26 +00:00
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
@ -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 New Issue
Block a user