nichts/hosts/temperance/filesystem/default.nix

43 lines
966 B
Nix
Raw Normal View History

2024-09-20 15:45:44 +02:00
{
config = {
2024-09-20 16:11:53 +02:00
boot.initrd.luks.devices."cryptroot".device = "/dev/disk-by-uuid/";
2024-09-20 15:45:44 +02:00
fileSystems = {
"/boot" = {
device = "";
fsType = "vfat";
};
# root on tmpfs
"/" = {
device = "none";
fsType = "tmpfs";
options = ["defaults" "size=25%" "mode=755"];
};
"/nix" = {
device = "";
fsType = "btrfs";
options = ["subvol=nix" "compress=zstd" "noatime"];
};
"/persist" = {
device = "";
neededForBoot = true;
fsType = "btrfs";
options = ["subvol=persist" "compress=zstd" "noatime"];
};
"/home" = {
device = "";
fsType = "btrfs";
options = ["subvol=home" "compress=zstd" "noatime"];
};
2024-09-20 16:11:53 +02:00
"/swap" = {
device = "";
fsType = "btrfs";
options = ["subvol=swap" "compress=lzo" "noatime"];
};
2024-09-20 15:45:44 +02:00
};
swapDevices = [
{device = "";}
];
};
}