This works as of 2023-07-18
/opt/anki
anki.service
:[Unit] Description=Anki [Service] ExecStart=/opt/anki/anki-<version>-linux-qt6/anki --syncserver WorkingDirectory=/opt/anki/anki-<version>-linux-qt6 Environment="SYNC_USER1=<username>:<password>" Environment="SYNC_PORT=<something other than 8080>" Environment="SYNC_BASE=<directory to store databases>" [Install] WantedBy=multi-user.target