nix/nixos/hosts/nixos-osaka-vultr-01/disks.nix

38 lines
896 B
Nix
Raw Normal View History

2023-09-20 12:40:48 +02:00
{
disko.devices = {
disk = {
2023-09-20 13:11:08 +02:00
vda = {
2023-09-20 12:40:48 +02:00
type = "disk";
device = "/dev/vda";
content = {
type = "gpt";
partitions = {
ESP = {
size = "100M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
};
luks = {
size = "100%";
content = {
type = "luks";
name = "crypted";
extraOpenArgs = [ "--allow-discards" ];
passwordFile = "/tmp/secret.key";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
};
};
};
};
};
};
}