boot.tmp.zramSettings.zram-size

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
string
Default
"ram * 0.5"
Example
"min(ram / 2, 4096)"
Declared
<nixpkgs/nixos/modules/system/boot/zram-as-tmp.nix>