Something went wrong. Try again.
Something went wrong. Try again.
Files
Verified signature Signed by quine.de SHA256:9AVhYNFEnyVditQoYqfFe5OarTRpHYKe41zab2AohLw Click to copy SHA
Verified signature Signed by quine.de SHA256:9AVhYNFEnyVditQoYqfFe5OarTRpHYKe41zab2AohLw Click to copy SHA
Verified signature Signed by quine.de SHA256:9AVhYNFEnyVditQoYqfFe5OarTRpHYKe41zab2AohLw Click to copy SHA
main Default
- Nix 65%
- Python 35%
README.md
Inkling #
Pi Zero W + Pimoroni Inky Impression 5.7" + Witty Pi 4 Mini. Wakes daily at 07:00, shows a random photo from immich.quine.de, updates itself on Sundays, powers off.
configuration.nix,inkling.py: the Pi.cache.nix: quine.de builds the latestmainevery Saturday (nixpkgs fromflake.lock; bump it withnix flake updatewhen you want new packages) and serves it as a signed binary cache at inkling.quine.de (basic auth). Imported by the server config.flash.nix: writes the image and the secrets to an SD card.
Install #
nix run git+https://tangled.org/quine.de/inkling#flash -- [--stay-on] /dev/sdX
Builds the image on quine.de (or reuses it), streams it onto the card and writes the secrets
from secrets.yaml (sops) to the FIRMWARE partition. --stay-on keeps the Pi powered for
ssh root@inkling; delete stay-on from the card afterwards.
Secrets #
sops secrets.yaml, one key per file on the FIRMWARE partition:
wifi.conf:network={ ssid="..." psk="..." }inkling.env:IMMICH_API_KEY=..., optionallyIMMICH_ALBUM_ID=.... The key only needs the permissionsasset.read(POST /search/random) andasset.view(GET /assets/{id}/thumbnail); create it under Account Settings → API Keys with just these two. Immich checks a key's permissions only against the endpoint, soIMMICH_ALBUM_IDneeds noalbum.read. But Inkling sends the legacy request shape (nofilter), which only searches the key owner's and their partners' assets: in an album shared by someone else, only photos owned by the key owner or a partner show up (immich v3.4.2,search.service.ts).netrc: basic auth for inkling.quine.de; matches the htpasswd in the server configimmich.crt,immich.key: client certificate for immich.quine.de (mTLS, the one nginx trusts in the server config'smodules/secrets/mtls/immich.yaml); without it every request getspong