dotfiles/nixos/systems/heater/filesystems.nix

60 lines
1.1 KiB
Nix
Raw Normal View History

{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 = [];
}