-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Open
Labels
Description
Module Name
programs.anki
Requested Feature
As mentioned in #7562 , the Anki sync key is distinct from the account password used to obtain the key. This is pretty easy to obtain from AnkiWeb, but it is undocumented for self-hosted Anki instances using the services.anki-sync-server NixOS option.
Some different approaches we could take:
- document the current implementation of Anki sync key generation in the module. It is pretty trivial (
hex(sha1("username:password"))), maybe we could provide a shell script or something: https://github.com/ankitects/anki/blob/dac26ce67147b261d79a56092320cc2f5af0d990/rslib/src/sync/http_server/mod.rs#L149-L152 - just re-implement the login flow Anki already does in
hm-sync-configand provide an account password option: https://github.com/ankitects/anki/blob/dac26ce67147b261d79a56092320cc2f5af0d990/qt/aqt/sync.py#L315-L329
What do people think?
Current Limitations
No response
Additional Context
No response