80 lines
2 KiB
Nix
80 lines
2 KiB
Nix
{ inputs, ... }: {
|
|
imports = [
|
|
inputs.disko.nixosModules.disko
|
|
];
|
|
disko.devices = {
|
|
disk.bb-nvme0n1 = {
|
|
device = "/dev/disk/by-id/nvme-eui.343337304e4032870025384100000001";
|
|
type = "disk";
|
|
content = {
|
|
type = "gpt";
|
|
partitions = {
|
|
BOOT = {
|
|
type = "EF00";
|
|
size = "512M";
|
|
content = {
|
|
type = "mdraid";
|
|
name = "boot";
|
|
};
|
|
};
|
|
root = {
|
|
size = "100%";
|
|
content = {
|
|
type = "btrfs";
|
|
extraArgs = [ "/dev/disk/by-partlabel/disk-aa-nvme1n1-root" "-f" "-d raid1" "-m raid1" ];
|
|
subvolumes = {
|
|
"nixos" = {
|
|
mountpoint = "/";
|
|
mountOptions = [ "compress=zstd" "noatime" ];
|
|
};
|
|
"var" = {
|
|
mountpoint = "/var";
|
|
mountOptions = [ "compress=zstd" "noatime" ];
|
|
};
|
|
"home" = {
|
|
mountpoint = "/home";
|
|
mountOptions = [ "compress=zstd" "noatime" ];
|
|
};
|
|
"nix" = {
|
|
mountpoint = "/nix";
|
|
mountOptions = [ "compress=zstd" "noatime" ];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
disk.aa-nvme1n1 = {
|
|
device = "/dev/disk/by-id/nvme-eui.343337304d8021880025384500000001";
|
|
type = "disk";
|
|
content = {
|
|
type = "gpt";
|
|
partitions = {
|
|
BOOT = {
|
|
type = "EF00";
|
|
size = "512M";
|
|
content = {
|
|
type = "mdraid";
|
|
name = "boot";
|
|
};
|
|
};
|
|
root = {
|
|
size = "100%";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
mdadm.boot = {
|
|
type = "mdadm";
|
|
level = 1;
|
|
metadata = "1.0";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "vfat";
|
|
mountpoint = "/boot";
|
|
mountOptions = [ "umask=0077" "defaults" ];
|
|
};
|
|
};
|
|
};
|
|
}
|