86 lines
2.3 KiB
Nix
86 lines
2.3 KiB
Nix
{
|
|
disko.devices = {
|
|
disk = {
|
|
main = {
|
|
type = "disk";
|
|
device = "/dev/disk/by-id/nvme-eui.00000000000000000c82d58020000000";
|
|
content = {
|
|
type = "gpt";
|
|
partitions = {
|
|
boot = {
|
|
size = "500M";
|
|
type = "EF00";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "vfat";
|
|
mountpoint = "/boot";
|
|
mountOptions = [ "umask=0077" ];
|
|
};
|
|
};
|
|
primary = {
|
|
size = "100%";
|
|
content = {
|
|
type = "btrfs";
|
|
extraArgs = [ "-f" ]; # Override existing partition
|
|
subvolumes = {
|
|
"/rootfs" = {
|
|
mountOptions = [
|
|
"compress=zstd"
|
|
"noatime"
|
|
];
|
|
mountpoint = "/";
|
|
};
|
|
"/home" = {
|
|
mountOptions = [
|
|
"compress=zstd"
|
|
"noatime"
|
|
];
|
|
mountpoint = "/home";
|
|
};
|
|
"/home/wekuz" = { };
|
|
"/nix" = {
|
|
mountOptions = [
|
|
"compress=zstd"
|
|
"noatime"
|
|
];
|
|
mountpoint = "/nix";
|
|
};
|
|
# TODO: /log
|
|
};
|
|
|
|
mountpoint = "/part-root";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
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";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|