nixcfg/hosts/petalburg/disko.nix

57 lines
1.5 KiB
Nix
Raw Normal View History

2024-06-14 19:06:08 -04:00
{
disko.devices = {
disk = {
vdb = {
type = "disk";
device = "/dev/nvme0n1";
content = {
type = "gpt";
partitions = {
ESP = {
2024-05-03 07:18:10 -04:00
size = "1024M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
2024-05-03 07:18:10 -04:00
mountOptions = [
2024-06-14 12:54:19 -04:00
"umask=0077"
2024-05-03 07:18:10 -04:00
];
};
};
2024-05-03 07:18:10 -04:00
luks = {
size = "100%";
content = {
2024-05-03 07:18:10 -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"];
};
};
};
};
};
};
};
};
};
};
}