1
0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-06-02 19:13:33 +02:00

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;
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.";
}
];
}