2024-03-02 22:05:30 +01:00
|
|
|
{secret, ...}: let
|
|
|
|
in {
|
2024-03-30 14:52:58 +01:00
|
|
|
systemd.services.nix-daemon.environment.TMPDIR = "/nix/tmp";
|
|
|
|
|
2023-06-11 23:09:59 +02:00
|
|
|
fileSystems = {
|
|
|
|
"/" = {
|
2024-03-30 14:52:58 +01:00
|
|
|
device = "none";
|
|
|
|
fsType = "tmpfs";
|
|
|
|
options = ["defaults" "size=512M" "mode=755" "noexec"];
|
2023-06-11 23:09:59 +02:00
|
|
|
};
|
|
|
|
|
2024-03-30 14:52:58 +01:00
|
|
|
"/tmp" = {
|
|
|
|
device = "none";
|
|
|
|
fsType = "tmpfs";
|
|
|
|
options = ["defaults" "size=512M" "mode=755"];
|
|
|
|
};
|
|
|
|
|
|
|
|
"/nix/persist" = {
|
|
|
|
device = "heater-ssd/persist";
|
2023-06-11 23:09:59 +02:00
|
|
|
fsType = "zfs";
|
2024-03-30 14:52:58 +01:00
|
|
|
neededForBoot = true;
|
2023-06-11 23:09:59 +02:00
|
|
|
};
|
|
|
|
|
2024-03-30 14:52:58 +01:00
|
|
|
"/nix" = {
|
|
|
|
device = "heater-ssd/local/nix";
|
2023-06-11 23:09:59 +02:00
|
|
|
fsType = "zfs";
|
|
|
|
};
|
|
|
|
|
2024-03-30 14:52:58 +01:00
|
|
|
"/home" = {
|
|
|
|
device = "heater-ssd/ephemeral/home";
|
2023-06-11 23:09:59 +02:00
|
|
|
fsType = "zfs";
|
2024-03-30 14:52:58 +01:00
|
|
|
neededForBoot = true;
|
2023-06-11 23:09:59 +02:00
|
|
|
};
|
|
|
|
|
2024-03-30 14:52:58 +01:00
|
|
|
"/root" = {
|
|
|
|
device = "heater-ssd/ephemeral/root";
|
2023-06-11 23:09:59 +02:00
|
|
|
fsType = "zfs";
|
2024-03-30 14:52:58 +01:00
|
|
|
neededForBoot = true;
|
2023-06-11 23:09:59 +02:00
|
|
|
};
|
|
|
|
|
2024-03-30 14:52:58 +01:00
|
|
|
"/nix/tmp" = {
|
|
|
|
device = "heater-ssd/ephemeral/nix-tmp";
|
2023-06-11 23:09:59 +02:00
|
|
|
fsType = "zfs";
|
2024-03-30 14:52:58 +01:00
|
|
|
neededForBoot = true;
|
2024-03-02 22:05:30 +01:00
|
|
|
};
|
2023-06-11 23:09:59 +02:00
|
|
|
|
|
|
|
"/boot" = {
|
2024-03-30 14:52:58 +01:00
|
|
|
device = "/dev/disk/by-uuid/c0a6bfbb-3553-4dc9-a299-b70070b8a52b";
|
2023-06-11 23:09:59 +02:00
|
|
|
fsType = "ext4";
|
|
|
|
};
|
|
|
|
|
|
|
|
"/boot/EFI" = {
|
2024-03-30 14:52:58 +01:00
|
|
|
device = "/dev/disk/by-uuid/90B0-657C";
|
2023-06-11 23:09:59 +02:00
|
|
|
fsType = "vfat";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
swapDevices = [];
|
|
|
|
}
|