Files
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 latest main every Saturday (nixpkgs from flake.lock; bump it with nix flake update when 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=..., optionally IMMICH_ALBUM_ID=.... The key only needs the permissions asset.read (POST /search/random) and asset.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, so IMMICH_ALBUM_ID needs no album.read. But Inkling sends the legacy request shape (no filter), 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 config
  • immich.crt, immich.key: client certificate for immich.quine.de (mTLS, the one nginx trusts in the server config's modules/secrets/mtls/immich.yaml); without it every request gets pong