mirror of
https://github.com/gburd/nix-config.git
synced 2024-11-15 00:36:25 +00:00
29 lines
597 B
Nix
29 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 = "/";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|
|
|