2023-01-17 13:45:37 +01:00
|
|
|
{
|
|
|
|
disko.devices = {
|
|
|
|
disk = {
|
2024-01-02 22:01:55 +01:00
|
|
|
nvme0n1 = {
|
|
|
|
device = "/dev/nvme0n1";
|
2023-01-17 13:45:37 +01:00
|
|
|
type = "disk";
|
|
|
|
content = {
|
2024-01-02 22:01:55 +01:00
|
|
|
type = "gpt";
|
|
|
|
partitions = {
|
|
|
|
esp = {
|
|
|
|
name = "ESP";
|
|
|
|
size = "512M";
|
|
|
|
type = "EF00";
|
2023-01-17 13:45:37 +01:00
|
|
|
content = {
|
|
|
|
type = "filesystem";
|
|
|
|
format = "vfat";
|
|
|
|
mountpoint = "/boot";
|
|
|
|
};
|
2024-01-02 22:01:55 +01:00
|
|
|
};
|
|
|
|
root = {
|
|
|
|
name = "root_pv_nvme0n1";
|
|
|
|
size = "260G";
|
|
|
|
content = {
|
|
|
|
type = "lvm_pv";
|
|
|
|
vg = "root-pool";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
data = {
|
|
|
|
name = "data_pv_nvme0n1";
|
|
|
|
size = "100%";
|
2023-01-17 13:45:37 +01:00
|
|
|
content = {
|
|
|
|
type = "lvm_pv";
|
2024-01-02 22:01:55 +01:00
|
|
|
vg = "data";
|
2023-01-17 13:45:37 +01:00
|
|
|
};
|
2024-01-02 22:01:55 +01:00
|
|
|
};
|
|
|
|
};
|
2023-01-17 13:45:37 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
sdb = {
|
2024-01-02 22:01:55 +01:00
|
|
|
device = "/dev/sda";
|
2023-01-17 13:45:37 +01:00
|
|
|
type = "disk";
|
|
|
|
content = {
|
2024-01-02 22:01:55 +01:00
|
|
|
type = "gpt";
|
|
|
|
partitions = {
|
|
|
|
root = {
|
|
|
|
name = "data_pv_sdb";
|
|
|
|
size = "100%";
|
2023-01-17 13:45:37 +01:00
|
|
|
content = {
|
|
|
|
type = "lvm_pv";
|
2024-01-02 22:01:55 +01:00
|
|
|
vg = "data";
|
2023-01-17 13:45:37 +01:00
|
|
|
};
|
2024-01-02 22:01:55 +01:00
|
|
|
};
|
|
|
|
};
|
2023-01-17 13:45:37 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
lvm_vg = {
|
2024-01-02 22:01:55 +01:00
|
|
|
root-pool = {
|
2023-01-17 13:45:37 +01:00
|
|
|
type = "lvm_vg";
|
|
|
|
lvs = {
|
2024-01-02 22:01:55 +01:00
|
|
|
nixos = {
|
|
|
|
size = "250G";
|
2023-01-17 13:45:37 +01:00
|
|
|
content = {
|
|
|
|
type = "filesystem";
|
|
|
|
format = "ext4";
|
|
|
|
mountpoint = "/";
|
|
|
|
mountOptions = [ "defaults" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
swap = {
|
2024-01-02 22:01:55 +01:00
|
|
|
size = "8G";
|
2023-01-17 13:45:37 +01:00
|
|
|
content = {
|
|
|
|
type = "swap";
|
2024-01-02 22:01:55 +01:00
|
|
|
randomEncryption = true;
|
2023-01-17 13:45:37 +01:00
|
|
|
};
|
|
|
|
};
|
2024-01-02 22:01:55 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
data = {
|
|
|
|
type = "lvm_vg";
|
|
|
|
lvs = {
|
|
|
|
data = {
|
2023-01-17 13:45:37 +01:00
|
|
|
size = "100%FREE";
|
2024-02-05 11:46:52 +01:00
|
|
|
extraArgs = [ "--type=thin-pool" ];
|
2023-01-17 13:45:37 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|