mirror of
https://github.com/gburd/nix-config.git
synced 2024-11-15 08:46:25 +00:00
30 lines
597 B
Nix
30 lines
597 B
Nix
|
{ disks ? [ "/dev/sda" ], ... }: {
|
||
|
disko.devices = {
|
||
|
disk = {
|
||
|
sda = {
|
||
|
device = builtins.elemAt disks 0;
|
||
|
type = "disk";
|
||
|
content = {
|
||
|
type = "gpt";
|
||
|
partitions = {
|
||
|
boot = {
|
||
|
size = "1M";
|
||
|
# for grub MBR
|
||
|
type = "EF02";
|
||
|
};
|
||
|
root = {
|
||
|
size = "100%";
|
||
|
content = {
|
||
|
type = "filesystem";
|
||
|
format = "ext4";
|
||
|
mountpoint = "/";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|
||
|
|