Use the module assertions option, instead

- Assertion (failure) when trying to use microsoft/surface/default.nix
This commit is contained in:
mexisme 2023-01-11 00:01:21 +13:00
parent 9d4505d4e1
commit ee8fef4149

View file

@ -1,12 +1,10 @@
{ lib, ... }: { ... }:
let {
inherit (lib) warn; assertions = [
{
in { assertion = false;
imports = [ message = "Importing microsoft/surface/ (default.nix) directly is deprecated! See microsoft/surface/OLD-BEHAVIOUR-DEPRECATED.md for more details.";
( warn }
"Please do not import microsoft/surface/ (default.nix) directly; use microsoft/surface/old or see microsoft/surface/old/README.md for more details."
./deprecated )
]; ];
} }