nichts/hosts/hermit/filesystem/default.nix

46 lines
1.3 KiB
Nix
Raw Normal View History

2024-10-11 18:23:06 +02:00
{
config = {
2024-10-14 12:06:17 +02:00
boot.initrd.luks.devices."cryptroot".device = "/dev/disk/by-uuid/70952ef8-1d73-49ae-bd86-b7614f01fa86";
2024-10-11 18:23:06 +02:00
fileSystems = {
"/boot" = {
2024-10-14 12:06:17 +02:00
device = "/dev/disk/by-uuid/466A-F45E";
2024-10-11 18:23:06 +02:00
fsType = "vfat";
};
# root on tmpfs
"/" = {
device = "none";
fsType = "tmpfs";
options = ["defaults" "size=25%" "mode=755"];
};
"/nix" = {
2024-10-14 12:06:17 +02:00
device = "/dev/disk/by-uuid/7fd4eb96-c9e6-450d-a7d6-1b2ef137a9f5";
2024-10-11 18:23:06 +02:00
fsType = "btrfs";
options = ["subvol=nix" "compress=zstd" "noatime"];
};
"/persist" = {
2024-10-14 12:06:17 +02:00
device = "/dev/disk/by-uuid/7fd4eb96-c9e6-450d-a7d6-1b2ef137a9f5";
2024-10-11 18:23:06 +02:00
neededForBoot = true;
fsType = "btrfs";
options = ["subvol=persist" "compress=zstd" "noatime"];
};
"/home" = {
2024-10-14 12:06:17 +02:00
device = "/dev/disk/by-uuid/7fd4eb96-c9e6-450d-a7d6-1b2ef137a9f5";
2024-10-11 18:23:06 +02:00
fsType = "btrfs";
options = ["subvol=home" "compress=zstd" "noatime"];
};
"/swap" = {
2024-10-14 12:06:17 +02:00
device = "/dev/disk/by-uuid/7fd4eb96-c9e6-450d-a7d6-1b2ef137a9f5";
2024-10-11 18:23:06 +02:00
fsType = "btrfs";
options = ["subvol=swap" "compress=lzo" "noatime"];
};
};
swapDevices = [
{
device = "/swap/swapfile";
size = (1024 * 16) + (1024 * 2);
}
];
};
}