42 lines
852 B
Nix
42 lines
852 B
Nix
|
{
|
||
|
disko.devices = {
|
||
|
disk = {
|
||
|
my-disk = {
|
||
|
device = "/dev/sdb";
|
||
|
type = "disk";
|
||
|
content = {
|
||
|
type = "gpt";
|
||
|
partitions = {
|
||
|
ESP = {
|
||
|
type = "EF00";
|
||
|
size = "256M";
|
||
|
content = {
|
||
|
type = "filesystem";
|
||
|
format = "vfat";
|
||
|
mountpoint = "/boot";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
swap = {
|
||
|
size = "8G";
|
||
|
content = {
|
||
|
type = "swap";
|
||
|
resumeDevice = true;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
root = {
|
||
|
size = "100%";
|
||
|
content = {
|
||
|
type = "filesystem";
|
||
|
format = "ext4";
|
||
|
mountpoint = "/";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|