39 lines
954 B
Nix
39 lines
954 B
Nix
|
{
|
||
|
disko.devices = {
|
||
|
disk = {
|
||
|
vdb = {
|
||
|
type = "disk";
|
||
|
device = "/dev/disk/by-id/usb-Kingston_DataTraveler_3.0_E0D55EA57414F510489F0F1A-0:0";
|
||
|
content = {
|
||
|
type = "gpt";
|
||
|
partitions = {
|
||
|
ESP = {
|
||
|
size = "500M";
|
||
|
type = "EF00";
|
||
|
content = {
|
||
|
type = "filesystem";
|
||
|
format = "vfat";
|
||
|
mountpoint = "/boot";
|
||
|
};
|
||
|
};
|
||
|
luks = {
|
||
|
size = "100%";
|
||
|
content = {
|
||
|
type = "luks";
|
||
|
name = "crypted";
|
||
|
settings.allowDiscards = true;
|
||
|
passwordFile = "/tmp/secret.key";
|
||
|
content = {
|
||
|
type = "filesystem";
|
||
|
format = "ext4";
|
||
|
mountpoint = "/";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|