sudo dnf install zram-generator-defaults
[zram0] zram-size = min(ram, 4096)
systemctl restart systemd-zram-setup@zram0