nix/nixos/hosts/warsaw-ovh-01/disks.nix
2024-07-14 21:15:37 +09:00

57 lines
1.3 KiB
Nix

{
disko.devices = {
disk = {
sda = {
type = "disk";
device = "/dev/sda";
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 = "/";
};
};
};
};
};
};
sdb = {
type = "disk";
device = "/dev/sdb";
content = {
type = "gpt";
partitions = {
Storage = {
type = "luks";
name = "storage-crypted";
settings.allowDiscards = true;
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/Storage";
};
};
};
};
};
};
};
}