use block device option

This commit is contained in:
Daniel Langbein 2023-10-12 12:01:32 +02:00
parent 23b17c8b9a
commit d2a4ea4ee9
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002
2 changed files with 7 additions and 3 deletions

View File

@ -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";

View File

@ -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;