nixcfg/hosts/rustboro/disko.nix

57 lines
1.5 KiB
Nix
Raw Normal View History

2024-04-01 20:29:48 -04:00
{
disko.devices = {
disk = {
vdb = {
2024-04-01 20:29:48 -04:00
type = "disk";
device = "/dev/sda";
content = {
type = "gpt";
partitions = {
ESP = {
2024-05-01 16:58:25 -04:00
size = "1024M";
2024-04-01 20:29:48 -04:00
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
2024-05-01 16:58:25 -04:00
mountOptions = [
"defaults"
];
2024-04-01 20:29:48 -04:00
};
};
2024-05-01 16:58:25 -04:00
luks = {
2024-04-01 20:29:48 -04:00
size = "100%";
content = {
2024-05-01 16:58:25 -04:00
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"];
};
};
};
2024-04-01 20:29:48 -04:00
};
};
};
};
};
};
};
}