mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-12-05 23:43:30 +01:00
Use the module assertions option, instead
- Assertion (failure) when trying to use microsoft/surface/default.nix
This commit is contained in:
1 parent
9d4505d4e1
commit
ee8fef4149
1 file changed
+7
-9
@@ -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 )
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user