nixcfg/hosts/mauville/disko.nix

95 lines
2.5 KiB
Nix
Raw Normal View History

{
disko.devices = {
disk = {
media = {
type = "disk";
2024-07-16 21:19:53 -04:00
device = "/dev/sda";
content = {
type = "gpt";
partitions = {
root = {
size = "100%";
content = {
type = "btrfs";
extraArgs = ["-f"]; # Override existing partition
mountpoint = "/mnt/Media";
mountOptions = ["compress=zstd" "noatime"];
};
};
};
};
};
archive = {
type = "disk";
2024-07-16 21:19:53 -04:00
device = "/dev/sdb";
content = {
type = "gpt";
partitions = {
root = {
size = "100%";
content = {
type = "btrfs";
extraArgs = ["-f"]; # Override existing partition
mountpoint = "/mnt/Archive";
mountOptions = ["compress=zstd" "noatime"];
};
};
};
};
};
vdb = {
type = "disk";
device = "/dev/nvme0n1";
content = {
type = "gpt";
partitions = {
ESP = {
size = "1024M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [
"defaults"
];
};
};
luks = {
size = "100%";
content = {
type = "luks";
name = "crypted";
content = {
type = "btrfs";
extraArgs = ["-f"];
subvolumes = {
"/root" = {
mountpoint = "/";
mountOptions = ["compress=zstd" "noatime"];
};
"persist" = {
mountpoint = "/persist";
mountOptions = ["compress=zstd" "noatime"];
};
"/home" = {
mountpoint = "/home";
mountOptions = ["compress=zstd" "noatime"];
};
"/nix" = {
mountpoint = "/nix";
mountOptions = ["compress=zstd" "noatime"];
};
};
};
};
};
};
};
};
};
};
}