The other way is to add entries to systemd tmpfiles; there are a few entry points as suits your need:
-
systemd.tmpfiles.rules, a list of lines in systemd tmpfiles.d format -
systemd.tmpfiles.settings, a more nix-structured way to specify the same -
systemd.user.tmpfiles.users.<name>.rules, a way to add such rules to a per-user unit