From c52e0880de7100b0590dd3e3d39cbbc63ef45485 Mon Sep 17 00:00:00 2001 From: mexisme Date: Tue, 10 Jan 2023 16:27:28 +1300 Subject: [PATCH] Add warning when importing microsoft/surface/ from now on --- microsoft/surface/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/microsoft/surface/default.nix b/microsoft/surface/default.nix index 0633c4e..63aac11 100644 --- a/microsoft/surface/default.nix +++ b/microsoft/surface/default.nix @@ -1,10 +1,12 @@ -{ lib, pkgs, ... }: +{ lib, ... }: let - inherit (lib) mkDefault; + inherit (lib) warn; in { imports = [ - ./old + ( warn + "Please don't import microsoft/surface/ (default.nix) any longer; use microsoft/surface/old or see microsoft/surface/old/README.md for more details." + ./old ) ]; }