From 0661bb800c523b983ef24ff30c2b44e960e2581e Mon Sep 17 00:00:00 2001 From: lassulus Date: Sat, 17 Feb 2024 04:33:37 +0100 Subject: [PATCH] types table: add deprecation warning --- lib/types/table.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/types/table.nix b/lib/types/table.nix index a20fc93..9c8df69 100644 --- a/lib/types/table.nix +++ b/lib/types/table.nix @@ -1,6 +1,12 @@ { config, options, lib, diskoLib, parent, device, ... }: { - options = { + options = lib.warn '' + The legacy table is outdated and should not be used. We recommend using the gpt type instead. + Please note that certain features, such as the test framework, may not function properly with the legacy table type. + If you encounter errors similar to: + "error: The option `disko.devices.disk.disk1.content.partitions."[definition 1-entry 1]".content._config` is read-only, but it's set multiple times," + this is likely due to the use of the legacy table type. + '' { type = lib.mkOption { type = lib.types.enum [ "table" ]; internal = true;