@@ -278,18 +278,26 @@ <h3 id="3-configure-your-ssh-key"><a class="header" href="#3-configure-your-ssh-
278
278
< p > Replace the text < code > CHANGE</ code > with your own SSH key. This is crucial, as you will
279
279
not be able to log into the target machine post-installation without it.</ p >
280
280
< h3 id ="4-configure-storage "> < a class ="header " href ="#4-configure-storage "> 4. Configure Storage</ a > </ h3 >
281
- < p > In the same directory, create a file named < code > disk-config.nix</ code > . This will be used
282
- to specify the disk layout to the
281
+ < p > In the same directory, create a file called < code > disk-config.nix</ code > . This file will
282
+ define the disk layout for the
283
283
< a href ="https://github.com/nix-community/disko/blob/master/docs/INDEX.md "> disko</ a > tool,
284
- which nixos-anywhere uses to partition, format and mount the disks.</ p >
285
- < p > For a simple installation you can paste the contents from the example
284
+ which is used by nixos-anywhere to partition, format, and mount the disks.</ p >
285
+ < p > For a basic installation, you can copy the contents from the example provided
286
286
< a href ="https://github.com/nix-community/nixos-anywhere-examples/blob/main/disk-config.nix "> here</ a > .
287
- This configures a standard GPT (GUID Partition Table) partition compatible with
288
- both EFI and BIOS systems, and mounts the disk as < code > /dev/sda</ code > . If this doesn’t
289
- meet your requirements, choose an example that suits your disk layout from the
287
+ This configuration sets up a standard GPT (GUID Partition Table) that is
288
+ compatible with both EFI and BIOS systems and mounts the disk as < code > /dev/sda</ code > . You
289
+ may need to adjust < code > /dev/sda</ code > to match the correct disk on your machine. To
290
+ identify the disk, run the < code > lsblk</ code > command and replace < code > sda</ code > with the actual
291
+ disk name.</ p >
292
+ < p > For example, on this machine, we would select < code > nvme0n1</ code > as the disk:</ p >
293
+ < pre > < code > NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
294
+ nvme0n1 259:0 0 1.8T 0 disk
295
+ </ code > </ pre >
296
+ < p > If this setup does not match your requirements, you can choose an example that
297
+ better suits your disk layout from the
290
298
< a href ="https://github.com/nix-community/disko/tree/master/example "> disko examples</ a > .
291
- For more information about this configuration , refer to the
292
- < a href ="https://github.com/nix-community/disko "> disko documentation. </ a > </ p >
299
+ For more detailed information , refer to the
300
+ < a href ="https://github.com/nix-community/disko "> disko documentation</ a > . </ p >
293
301
< h3 id ="5-lock-your-flake "> < a class ="header " href ="#5-lock-your-flake "> 5. Lock your Flake</ a > </ h3 >
294
302
< pre > < code > nix flake lock
295
303
</ code > </ pre >
0 commit comments