Add storage disk config
This commit is contained in:
parent
767dac0b77
commit
e55e80187d
1 changed files with 27 additions and 0 deletions
|
|
@ -55,5 +55,32 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
storagedisk = {
|
||||
type = "disk";
|
||||
device = "/dev/disk/by-id/ata-HGST_HUS722T2TALA604_WMC6N0P31NKZ";
|
||||
content = {
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
primary = {
|
||||
size = "100%";
|
||||
content = {
|
||||
type = "btrfs";
|
||||
extraArgs = [ "-f" ]; # Override existing partition
|
||||
subvolumes = {
|
||||
"/storage" = {
|
||||
mountOptions = [
|
||||
"compress=zstd"
|
||||
"noatime"
|
||||
];
|
||||
mountpoint = "/storage";
|
||||
};
|
||||
};
|
||||
|
||||
mountpoint = "/part-storage";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue