From 86a62729af06ee09531baf75084e6b6a2cb81c0a Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Thu, 12 Oct 2023 12:58:02 +0200 Subject: [PATCH] refactor: rename "one" to "disk1" --- template/disk-configs/simple-efi.nix | 2 +- template/flake.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/template/disk-configs/simple-efi.nix b/template/disk-configs/simple-efi.nix index 9cf77f1..f663052 100644 --- a/template/disk-configs/simple-efi.nix +++ b/template/disk-configs/simple-efi.nix @@ -1,7 +1,7 @@ # Example to create a bios compatible gpt partition { lib, ... }: { disko.devices.disk = { - one = { + disk1 = { device = lib.mkDefault "/dev/nvme0n1"; type = "disk"; content = { diff --git a/template/flake.nix b/template/flake.nix index f9a2cba..8cea172 100644 --- a/template/flake.nix +++ b/template/flake.nix @@ -33,7 +33,7 @@ # 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"; } + { disko.devices.disk.disk1.device = "/dev/disk/by-id/nvme-SAMSUNG_MZVLW128HEGR-000H1_S33ZNX0J129742"; } { boot.loader.grub = {