boot.tmp.zramSettings.zram-size
NixOS option
The size of the zram device, as a function of MemTotal, both in MB. For example, if the machine has 1 GiB, and zram-size=ram/4, then the zram device will have 256 MiB. Fractions in the range 0.1–0.5 are recommended See: https://github.com/systemd/zram-generator/blob/main/zram-generator.conf.example
type: stringDefault
"ram * 0.5"
Example
declared in: nixos/modules/system/boot/zram-as-tmp.nixView source on NixOS/nixpkgs →"min(ram / 2, 4096)"