mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-01 01:33:20 +00:00
Merge pull request #223760 from K900/nicer-pure-eval-error
nixos/system: disallow system.copySystemConfiguration in pure eval mode
This commit is contained in:
commit
3947e917cf
@ -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