From d2a4ea4ee9705bbe87797bf94fe69ba1349ffd67 Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Thu, 12 Oct 2023 12:01:32 +0200 Subject: [PATCH] use block device option --- template/disk-configs/simple-efi.nix | 4 +--- template/flake.nix | 6 ++++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/template/disk-configs/simple-efi.nix b/template/disk-configs/simple-efi.nix index e1928dc..bdfaa03 100644 --- a/template/disk-configs/simple-efi.nix +++ b/template/disk-configs/simple-efi.nix @@ -2,9 +2,7 @@ { lib, ... }: { disko.devices.disk = { one = { - # Change this device name match your block device. - # The `lsblk` command can help you here - device = lib.mkDefault "/dev/sda"; + device = lib.mkDefault "/dev/nvme0n1"; type = "disk"; content = { type = "gpt"; diff --git a/template/flake.nix b/template/flake.nix index 3da990b..45a3f66 100644 --- a/template/flake.nix +++ b/template/flake.nix @@ -23,6 +23,12 @@ ./disk-configs/simple-efi.nix # choose your favorite disk layout here #./disk-configs/zfs.nix # choose your favorite disk layout here #./disk-configs/luks-lvm.nix # choose your favorite disk layout here + + # Change device name match your block device. + # Running `lsblk` on the target machine can help you here. + # Examples: "/dev/nvme0n1", "/dev/sda", "/dev/vda" + { disko.devices.disk.one.device = "/dev/nvme0n1"; } + { boot.loader.grub = { efiSupport = true;