mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-04 01:07:14 +08:00
Use the module assertions option, instead
- Assertion (failure) when trying to use microsoft/surface/default.nix
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
{ lib, ... }:
|
||||
{ ... }:
|
||||
|
||||
let
|
||||
inherit (lib) warn;
|
||||
|
||||
in {
|
||||
imports = [
|
||||
( 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 )
|
||||
{
|
||||
assertions = [
|
||||
{
|
||||
assertion = false;
|
||||
message = "Importing microsoft/surface/ (default.nix) directly is deprecated! See microsoft/surface/OLD-BEHAVIOUR-DEPRECATED.md for more details.";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user