42 lines
1,019 B
Nix
42 lines
1,019 B
Nix
|
{ disks ? [ "/dev/vda" ], ... }: {
|
||
|
disko.devices = {
|
||
|
disk = {
|
||
|
vdb = {
|
||
|
type = "disk";
|
||
|
device = builtins.elemAt disks 0;
|
||
|
content = {
|
||
|
type = "gpt";
|
||
|
partitions = {
|
||
|
boot = {
|
||
|
size = "1M";
|
||
|
type = "EF02";
|
||
|
};
|
||
|
root = {
|
||
|
size = "100%";
|
||
|
content = {
|
||
|
type = "btrfs";
|
||
|
extraArgs = [ "-f" ];
|
||
|
subvolumes = {
|
||
|
"/root" = {
|
||
|
mountpoint = "/";
|
||
|
mountOptions = [ ];
|
||
|
};
|
||
|
"/home" = {
|
||
|
mountpoint = "/home";
|
||
|
mountOptions = [ "compress=zstd" ];
|
||
|
};
|
||
|
"/nix" = {
|
||
|
mountpoint = "/nix";
|
||
|
mountOptions = [ "compress=zstd" "noatime" ];
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|
||
|
|