mirror of
https://github.com/nix-community/disko.git
synced 2024-11-05 06:04:20 +03:00
3cb78c93e6
This requires more code and is not implemented just now.
47 lines
1.1 KiB
Nix
47 lines
1.1 KiB
Nix
{
|
|
disko.devices = {
|
|
disk = {
|
|
vdb = {
|
|
device = "/dev/vdb";
|
|
type = "disk";
|
|
content = {
|
|
type = "gpt";
|
|
partitions = {
|
|
ESP = {
|
|
size = "500M";
|
|
type = "EF00";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "vfat";
|
|
mountpoint = "/boot";
|
|
};
|
|
};
|
|
root = {
|
|
end = "-1G";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "ext4";
|
|
mountpoint = "/";
|
|
};
|
|
};
|
|
encryptedSwap = {
|
|
size = "10M";
|
|
content = {
|
|
type = "swap";
|
|
randomEncryption = true;
|
|
};
|
|
};
|
|
plainSwap = {
|
|
size = "100%";
|
|
content = {
|
|
type = "swap";
|
|
resumeDevice = true; # resume from hiberation from this device
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|