zramSwap.memoryPercent

NixOS option

Maximum total amount of memory that can be stored in the zram swap devices (as a percentage of your total memory). Defaults to 1/2 of your total RAM. Run zramctl to check how good memory is compressed. This doesn’t define how much memory will be used by the zram swap devices.

type: positive integer, meaning >0
Default
50
declared in: nixos/modules/config/zram.nixView source on NixOS/nixpkgs →