512hardpc/hosts/pc/disk-config.nix

47 lines
1.2 KiB
Nix

{
disko.devices = {
disk = {
main = {
type = "disk";
device = "/dev/disk/by-id/nvme-Samsung_SSD_990_PRO_2TB_S6Z2NF0W823875P";
content = {
type = "gpt";
partitions = {
ESP = {
size = "500M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
};
system = {
size = "256G";
content = {
type = "filesystem";
format = "btrfs";
mountpoint = "/";
};
};
storage = {
size = "100%";
content = {
type = "luks";
name = "storage";
settings.allowDiscards = true;
passwordFile = "/tmp/secret.key";
content = {
type = "filesystem";
format = "btrfs";
mountpoint = "/storage"; # non-standard folder for unix-like, but good to avoid collisions
};
};
};
};
};
};
};
};
}