Skip to content

Commit

Permalink
Merge pull request #394 from nix-community/joerg-ci
Browse files Browse the repository at this point in the history
Mention lsblk in disko section
  • Loading branch information
Mic92 authored Sep 27, 2024
2 parents 3aca18a + f59c44a commit 082fb15
Showing 1 changed file with 21 additions and 9 deletions.
30 changes: 21 additions & 9 deletions docs/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,19 +68,31 @@ not be able to log into the target machine post-installation without it.

### 4. Configure Storage

In the same directory, create a file named `disk-config.nix`. This will be used
to specify the disk layout to the
In the same directory, create a file called `disk-config.nix`. This file will
define the disk layout for the
[disko](https://github.com/nix-community/disko/blob/master/docs/INDEX.md) tool,
which nixos-anywhere uses to partition, format and mount the disks.
which is used by nixos-anywhere to partition, format, and mount the disks.

For a simple installation you can paste the contents from the example
For a basic installation, you can copy the contents from the example provided
[here](https://github.com/nix-community/nixos-anywhere-examples/blob/main/disk-config.nix).
This configures a standard GPT (GUID Partition Table) partition compatible with
both EFI and BIOS systems, and mounts the disk as `/dev/sda`. If this doesn’t
meet your requirements, choose an example that suits your disk layout from the
This configuration sets up a standard GPT (GUID Partition Table) that is
compatible with both EFI and BIOS systems and mounts the disk as `/dev/sda`. You
may need to adjust `/dev/sda` to match the correct disk on your machine. To
identify the disk, run the `lsblk` command and replace `sda` with the actual
disk name.

For example, on this machine, we would select `nvme0n1` as the disk:

```
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
nvme0n1 259:0 0 1.8T 0 disk
```

If this setup does not match your requirements, you can choose an example that
better suits your disk layout from the
[disko examples](https://github.com/nix-community/disko/tree/master/example).
For more information about this configuration, refer to the
[disko documentation.](https://github.com/nix-community/disko)
For more detailed information, refer to the
[disko documentation](https://github.com/nix-community/disko).

### 5. Lock your Flake

Expand Down

0 comments on commit 082fb15

Please sign in to comment.