agate: add disks to storage
This commit is contained in:
parent
3a90472a96
commit
3b3c1b2b76
1 changed files with 41 additions and 0 deletions
|
@ -86,6 +86,47 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
hdd1 = {
|
||||
type = "disk";
|
||||
device = "/dev/disk/by-id/ata-WUH721414ALE6L0_9KGEMPVL";
|
||||
content = {
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
storage_p1 = {
|
||||
size = "100%";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
hdd2 = {
|
||||
type = "disk";
|
||||
device = "/dev/disk/by-id/ata-WUH721414ALE6L0_X1G14ZNL";
|
||||
content = {
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
storage_p2 = {
|
||||
size = "100%";
|
||||
content = {
|
||||
type = "btrfs";
|
||||
extraArgs = [
|
||||
"-f"
|
||||
"-d raid1"
|
||||
"/dev/disk/by-partlabel/disk-hdd1-storage_p1"
|
||||
];
|
||||
subvolumes = {
|
||||
"/storage" = {
|
||||
mountOptions = [
|
||||
"compress=zstd"
|
||||
];
|
||||
mountpoint = "/storage";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue