dotfiles/nixos/systems/heater/filesystems.nix
magic_rb 6f18aa5f55
Fixup heater, prepare for compute rig
Signed-off-by: magic_rb <magic_rb@redalder.org>
2024-03-30 14:52:58 +01:00

60 lines
1.1 KiB
Nix

{secret, ...}: let
in {
systemd.services.nix-daemon.environment.TMPDIR = "/nix/tmp";
fileSystems = {
"/" = {
device = "none";
fsType = "tmpfs";
options = ["defaults" "size=512M" "mode=755" "noexec"];
};
"/tmp" = {
device = "none";
fsType = "tmpfs";
options = ["defaults" "size=512M" "mode=755"];
};
"/nix/persist" = {
device = "heater-ssd/persist";
fsType = "zfs";
neededForBoot = true;
};
"/nix" = {
device = "heater-ssd/local/nix";
fsType = "zfs";
};
"/home" = {
device = "heater-ssd/ephemeral/home";
fsType = "zfs";
neededForBoot = true;
};
"/root" = {
device = "heater-ssd/ephemeral/root";
fsType = "zfs";
neededForBoot = true;
};
"/nix/tmp" = {
device = "heater-ssd/ephemeral/nix-tmp";
fsType = "zfs";
neededForBoot = true;
};
"/boot" = {
device = "/dev/disk/by-uuid/c0a6bfbb-3553-4dc9-a299-b70070b8a52b";
fsType = "ext4";
};
"/boot/EFI" = {
device = "/dev/disk/by-uuid/90B0-657C";
fsType = "vfat";
};
};
swapDevices = [];
}