nix/nixos/hosts/osaka-vultr-01/disks.nix
2023-10-04 21:45:59 +09:00

39 lines
No EOL
942 B
Nix

{
boot.loader.grub.device = "/dev/vda";
boot.initrd.luks.devices."vda2".device = "/dev/vda2";
disko.devices = {
disk = {
vda = {
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" ];
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
};
};
};
};
};
};
}