2024-02-01 14:35:46 +01:00
|
|
|
{
|
|
|
|
disko.devices = {
|
|
|
|
disk = {
|
|
|
|
vdb = {
|
|
|
|
device = "/dev/disk/by-path/pci-0000:71:00.0-nvme-1";
|
|
|
|
type = "disk";
|
|
|
|
content = {
|
|
|
|
type = "gpt";
|
|
|
|
partitions = {
|
|
|
|
ESP = {
|
|
|
|
size = "512M";
|
|
|
|
type = "EF00";
|
|
|
|
content = {
|
|
|
|
type = "filesystem";
|
|
|
|
format = "vfat";
|
|
|
|
mountpoint = "/boot";
|
|
|
|
mountOptions = [
|
|
|
|
"defaults"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
2024-02-12 01:20:19 +01:00
|
|
|
};
|
|
|
|
luks = {
|
|
|
|
size = "100%";
|
|
|
|
content = {
|
|
|
|
type = "luks";
|
|
|
|
name = "crypted";
|
|
|
|
# disable settings.keyFile if you want to use interactive password entry
|
|
|
|
#passwordFile = "/tmp/secret.key"; # Interactive
|
|
|
|
settings = {
|
|
|
|
allowDiscards = true;
|
|
|
|
#keyFile = "/tmp/secret.key";
|
2024-02-03 17:50:32 +01:00
|
|
|
};
|
2024-02-12 01:20:19 +01:00
|
|
|
#additionalKeyFiles = ["/tmp/additionalSecret.key"];
|
2024-02-01 14:35:46 +01:00
|
|
|
content = {
|
2024-02-12 01:20:19 +01:00
|
|
|
swap = {
|
|
|
|
type = "swap";
|
|
|
|
size = "4G";
|
|
|
|
resumeDevice = true; # resume from hiberation from this device
|
2024-02-01 14:35:46 +01:00
|
|
|
};
|
2024-02-12 01:20:19 +01:00
|
|
|
root = {
|
2024-02-06 12:45:33 +01:00
|
|
|
type = "filesystem";
|
|
|
|
format = "bcachefs";
|
2024-02-12 01:20:19 +01:00
|
|
|
size = "100%";
|
2024-02-06 12:45:33 +01:00
|
|
|
mountpoint = "/";
|
2024-02-01 14:35:46 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-02-06 12:45:33 +01:00
|
|
|
};
|
2024-02-01 14:35:46 +01:00
|
|
|
}
|