mirror of
https://github.com/nix-community/disko.git
synced 2026-12-02 05:53:28 +01:00
Update README.md
make simple disko config even simpler
This commit is contained in:
1 parent
b4104fcaea
commit
3ca75072ad
1 file changed
+3
-3
@@ -58,11 +58,11 @@ To access sample configurations for commonly-used disk layouts, refer to the
|
|||||||
A simple disko configuration may look like this:
|
A simple disko configuration may look like this:
|
||||||
|
|
||||||
```
|
```
|
||||||
{ disks ? [ "/dev/vdb" ], ... }: {
|
{
|
||||||
disko.devices = {
|
disko.devices = {
|
||||||
disk = {
|
disk = {
|
||||||
vdb = {
|
vdb = {
|
||||||
device = builtins.elemAt disks 0;
|
device = "/dev/sda";
|
||||||
type = "disk";
|
type = "disk";
|
||||||
content = {
|
content = {
|
||||||
type = "gpt";
|
type = "gpt";
|
||||||
@@ -96,7 +96,7 @@ a disk named /dev/nvme0n1, you would run the following command to partition,
|
|||||||
format and mount the disk.
|
format and mount the disk.
|
||||||
|
|
||||||
```
|
```
|
||||||
$ sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko -- --mode disko /tmp/disko-config.nix --arg disks '[ "/dev/nvme0n1" ]'
|
$ sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko -- --mode disko /tmp/disko-config.nix
|
||||||
```
|
```
|
||||||
|
|
||||||
## Related Tools
|
## Related Tools
|
||||||
|
|||||||
Reference in new issue
Block a user