To install directly from sources, execute make build && sudo make install NOBUILD=true:
-zram-generator binary is installed in the systemd system generator directory (usually /usr/lib/systemd/system-generators/)
-zram-generator(8) and zram-generator.conf(5) manpages are installed into /usr/share/man/manN/, this requires ronn.
-units/systemd-zram-setup@.service is copied into the systemd system unit directory (usually /usr/lib/systemd/system/)
-zram-generator.conf.example is copied into /usr/share/doc/zram-generator/ You need though create your own config file at one of the locations listed above.
A default config file may be located in /usr. This generator checks the following locations:
-/run/systemd/zram-generator.conf
-/etc/systemd/zram-generator.conf
-/usr/local/lib/systemd/zram-generator.conf
-/usr/lib/systemd/zram-generator.conf
… and the first file found in that list wins.
In addition, "drop-ins" will be loaded from .conf files in /etc/systemd/zram-generator.conf.d/, /usr/lib/systemd/zram-generator.conf.d/, etc.
The main configuration file is read before any of the drop-ins and has the lowest precedence; entries in the drop-in files override entries in the main configuration file.
See systemd.unit(5) for a detailed description of this logic.
See zram-generator.conf.example for a list of available settings.