From 558e84658d0eafc812497542ad6ca0d9654b3b0f Mon Sep 17 00:00:00 2001 From: lennart Date: Sun, 18 Jan 2026 08:13:16 +0100 Subject: [PATCH] example: add comments as warning about legacy table type Just did the mistake to copy and paste one legacy table type example. Ran into the warning and was a bit sad. Adding these comments while referring to the documentation could help some undercaffeinated disko users like me. --- example/legacy-table-with-whitespace.nix | 5 +++++ example/legacy-table.nix | 5 +++++ example/stand-alone/configuration.nix | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/example/legacy-table-with-whitespace.nix b/example/legacy-table-with-whitespace.nix index 0621957..9c1a433 100644 --- a/example/legacy-table-with-whitespace.nix +++ b/example/legacy-table-with-whitespace.nix @@ -1,3 +1,8 @@ +# This example with the legacy table should not be used. We recommend using the +# gpt type instead. More information about this warning may be found in the +# documentation. +# +# https://github.com/nix-community/disko/blob/master/docs/table-to-gpt.md { disko.devices = { disk = { diff --git a/example/legacy-table.nix b/example/legacy-table.nix index ad27534..7bdf549 100644 --- a/example/legacy-table.nix +++ b/example/legacy-table.nix @@ -1,3 +1,8 @@ +# This example with the legacy table should not be used. We recommend using the +# gpt type instead. More information about this warning may be found in the +# documentation. +# +# https://github.com/nix-community/disko/blob/master/docs/table-to-gpt.md { disko.devices = { disk = { diff --git a/example/stand-alone/configuration.nix b/example/stand-alone/configuration.nix index 2e0889a..bbf7f90 100644 --- a/example/stand-alone/configuration.nix +++ b/example/stand-alone/configuration.nix @@ -1,3 +1,8 @@ +# This example with the legacy table should not be used. We recommend using the +# gpt type instead. More information about this warning may be found in the +# documentation. +# +# https://github.com/nix-community/disko/blob/master/docs/table-to-gpt.md { pkgs, lib,