nichts/hosts/temperance/filesystem/default.nix

67 lines
1.5 KiB
Nix
Raw Normal View History

2024-09-20 15:45:44 +02:00
{
config = {
boot.initrd.luks.devices."cryptroot".device =
"/dev/disk/by-uuid/96e8f3d6-8d2d-4e2d-abd9-3eb7f48fed02";
2024-09-20 15:45:44 +02:00
fileSystems = {
"/boot" = {
device = "/dev/disk/by-uuid/B3AC-9050";
2024-09-20 15:45:44 +02:00
fsType = "vfat";
};
# root on tmpfs
"/" = {
device = "none";
fsType = "tmpfs";
options = [
"defaults"
"size=40%"
"mode=755"
];
2024-09-20 15:45:44 +02:00
};
"/nix" = {
2024-09-20 22:55:26 +02:00
device = "/dev/disk/by-uuid/f0569993-722e-4721-b0d9-8ac537a7a548";
2024-09-20 15:45:44 +02:00
fsType = "btrfs";
options = [
"subvol=nix"
"compress=zstd"
"noatime"
];
2024-09-20 15:45:44 +02:00
};
"/persist" = {
2024-09-20 22:55:26 +02:00
device = "/dev/disk/by-uuid/f0569993-722e-4721-b0d9-8ac537a7a548";
2024-09-20 15:45:44 +02:00
neededForBoot = true;
fsType = "btrfs";
options = [
"subvol=persist"
"compress=zstd"
"noatime"
];
2024-09-20 15:45:44 +02:00
};
"/home" = {
2024-09-20 22:55:26 +02:00
device = "/dev/disk/by-uuid/f0569993-722e-4721-b0d9-8ac537a7a548";
2024-09-20 15:45:44 +02:00
fsType = "btrfs";
options = [
"subvol=home"
"compress=zstd"
"noatime"
];
2024-09-20 15:45:44 +02:00
};
2024-09-20 16:11:53 +02:00
"/swap" = {
2024-09-20 22:55:26 +02:00
device = "/dev/disk/by-uuid/f0569993-722e-4721-b0d9-8ac537a7a548";
2024-09-20 16:11:53 +02:00
fsType = "btrfs";
options = [
"subvol=swap"
"compress=lzo"
"noatime"
];
2024-09-20 16:11:53 +02:00
};
2024-09-20 15:45:44 +02:00
};
swapDevices = [
2024-09-20 16:13:26 +02:00
{
device = "/swap/swapfile";
size = (1024 * 16) + (1024 * 2);
}
2024-09-20 15:45:44 +02:00
];
};
}