2024-09-20 15:45:44 +02:00
|
|
|
{
|
|
|
|
config = {
|
2025-07-20 01:23:48 +02:00
|
|
|
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" = {
|
2025-04-06 21:23:26 +02:00
|
|
|
device = "/dev/disk/by-uuid/B3AC-9050";
|
2024-09-20 15:45:44 +02:00
|
|
|
fsType = "vfat";
|
|
|
|
};
|
|
|
|
# root on tmpfs
|
|
|
|
"/" = {
|
|
|
|
device = "none";
|
|
|
|
fsType = "tmpfs";
|
2025-07-20 01:23:48 +02:00
|
|
|
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";
|
2025-07-20 01:23:48 +02:00
|
|
|
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";
|
2025-07-20 01:23:48 +02:00
|
|
|
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";
|
2025-07-20 01:23:48 +02:00
|
|
|
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";
|
|
|
|
|
2025-07-20 01:23:48 +02:00
|
|
|
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
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|