hosts/legion: move to new structure
Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
31
hosts/legion/disko/disk-second.nix
Normal file
31
hosts/legion/disko/disk-second.nix
Normal file
@ -0,0 +1,31 @@
|
||||
{disk-second}: {
|
||||
type = "disk";
|
||||
device = disk-second;
|
||||
content = {
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
luks = {
|
||||
size = "100%";
|
||||
content = {
|
||||
type = "luks";
|
||||
name = "luks-second";
|
||||
initrdUnlock = true;
|
||||
settings.allowDiscards = true;
|
||||
content = {
|
||||
type = "btrfs";
|
||||
extraArgs = ["-f"];
|
||||
subvolumes = {
|
||||
"@storage" = {
|
||||
mountpoint = "/storage";
|
||||
mountOptions = [
|
||||
"compress=zstd"
|
||||
"noatime"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user