2022-08-23 08:18:37 +03:00
|
|
|
{config, ...}: let
|
2022-08-14 10:45:17 +03:00
|
|
|
byLabel = label: "/dev/disk/by-label/${label}";
|
2022-08-23 08:18:37 +03:00
|
|
|
in {
|
2022-08-14 10:45:17 +03:00
|
|
|
fileSystems."/" = {
|
|
|
|
device = "none";
|
|
|
|
fsType = "tmpfs";
|
|
|
|
options = ["defaults" "size=2G" "mode=755"];
|
|
|
|
};
|
|
|
|
fileSystems."/nix" = {
|
|
|
|
device = byLabel "NIX";
|
|
|
|
fsType = "f2fs";
|
|
|
|
};
|
|
|
|
fileSystems."${config.system.persistDir}" = {
|
|
|
|
device = byLabel "PERSIST";
|
|
|
|
fsType = "f2fs";
|
|
|
|
neededForBoot = true;
|
|
|
|
};
|
|
|
|
fileSystems."/boot" = {
|
|
|
|
device = byLabel "BOOT";
|
|
|
|
fsType = "vfat";
|
|
|
|
};
|
|
|
|
|
|
|
|
swapDevices = [];
|
|
|
|
zramSwap = {
|
|
|
|
enable = true;
|
|
|
|
algorithm = "zstd";
|
|
|
|
};
|
|
|
|
}
|