What's the easiest way to enable and benefit from zram with debian templates?

On fedora templates I can get zram easily enabled using:

dnf install zram zram-generator zram-generator-defaults

And after restarting the VMs zram is enabled.

But there doesn’t seem to be a similar equivalent for debian templates. So what’s the easiest way to enable and benefit from zram with debian templates?

sudo apt install systemd-zram-generator?

The easiest seems to be zram-tools:

sudo apt install zram-tools

Then you just edit /etc/default/zram-swap (if you want to change anything from the default values) and it’s on.