ark/hosts/tkaronto/modules/fs.nix

31 lines
571 B
Nix
Raw Normal View History

2022-08-14 10:45:17 +03:00
{config, ...}:
let
byLabel = label: "/dev/disk/by-label/${label}";
in
{
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";
};
}