From edc879b276a898f5144c9a012ce18a23371c69d0 Mon Sep 17 00:00:00 2001 From: Qubasa Date: Fri, 13 Sep 2024 15:01:29 +0200 Subject: [PATCH] docs: Fix line highlighting, add warning to single-disk --- clanModules/single-disk/default.nix | 6 ++++-- docs/site/getting-started/disk-encryption.md | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/clanModules/single-disk/default.nix b/clanModules/single-disk/default.nix index eb90daf05..64edc68d6 100644 --- a/clanModules/single-disk/default.nix +++ b/clanModules/single-disk/default.nix @@ -5,11 +5,13 @@ default = null; type = lib.types.nullOr lib.types.str; description = "The primary disk device to install the system on"; - # Question: should we set a default here? - # default = "/dev/null"; }; }; config = { + warnings = [ + "clanModules.single-disk is deprecated. Please copy the disko config from the module into your machine config." + ]; + boot.loader.grub.efiSupport = lib.mkDefault true; boot.loader.grub.efiInstallAsRemovable = lib.mkDefault true; disko.devices = { diff --git a/docs/site/getting-started/disk-encryption.md b/docs/site/getting-started/disk-encryption.md index b771a43c5..1595ab49c 100644 --- a/docs/site/getting-started/disk-encryption.md +++ b/docs/site/getting-started/disk-encryption.md @@ -14,7 +14,7 @@ lsblk --output NAME,ID-LINK,FSTYPE,SIZE,MOUNTPOINT === "**Single Disk**" Below is the configuration for `disko.nix` - ```nix hl_lines="16 47" + ```nix hl_lines="17 48" { lib, clan-core, ... }: let suffix = config.clan.core.vars.generators.disk-id.files.diskId.value; @@ -115,7 +115,7 @@ lsblk --output NAME,ID-LINK,FSTYPE,SIZE,MOUNTPOINT === "**Raid 1**" Below is the configuration for `disko.nix` - ```nix hl_lines="16 47 48" + ```nix hl_lines="17 48 49" { lib, clan-core, ... }: let suffix = config.clan.core.vars.generators.disk-id.files.diskId.value;