92 lines
2.7 KiB
Nix
92 lines
2.7 KiB
Nix
{...}:
|
|
|
|
let
|
|
disks = [
|
|
"/dev/disk/by-id/ata-WDC_WDS120G2G0A-00JH30_184377804456"
|
|
"/dev/disk/by-id/ata-KINGSTON_SA400S37120G_50026B7783176055"
|
|
];
|
|
in
|
|
{
|
|
disko.devices = {
|
|
disk = {
|
|
ssd0 = {
|
|
type = "disk";
|
|
device = builtins.elemAt disks 0;
|
|
content = {
|
|
type = "gpt";
|
|
partitions = {
|
|
bios_grub = {
|
|
size = "2M";
|
|
type = "EF02";
|
|
};
|
|
|
|
pv = {
|
|
size = "100%";
|
|
content = {
|
|
type = "lvm_pv";
|
|
vg = "mainpool";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
ssd1 = {
|
|
type = "disk";
|
|
device = builtins.elemAt disks 1;
|
|
content = {
|
|
type = "gpt";
|
|
partitions = {
|
|
pv = {
|
|
size = "100%";
|
|
content = {
|
|
type = "lvm_pv";
|
|
vg = "mainpool";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
lvm_vg = {
|
|
mainpool = {
|
|
type = "lvm_vg";
|
|
lvs = {
|
|
root = {
|
|
size = "30G";
|
|
lvm_type = "raid0";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "ext4";
|
|
mountpoint = "/";
|
|
mountOptions = [ "noatime" ];
|
|
};
|
|
};
|
|
|
|
nix = {
|
|
size = "50G";
|
|
lvm_type = "raid0";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "ext4";
|
|
mountpoint = "/nix";
|
|
mountOptions = [ "noatime" ];
|
|
};
|
|
};
|
|
|
|
games = {
|
|
size = "100%FREE";
|
|
lvm_type = "raid0";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "ext4";
|
|
mountpoint = "/games";
|
|
mountOptions = [ "noatime" ];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
} |