README.md

remarkable-nixos #

Run NixOS on reMarkable paper tablets.

A Nix flake of per-subsystem NixOS modules (boot image, kernel, stage-1 hooks, USB networking, e-ink, power/sleep, reader UI, GUI apps on the panel, PIN lock) driven by per-device profiles under devices/. The reference device is the reMarkable Paper Pro Move (codename chiappa, NXP i.MX 93), extracted from a daily-driven system; other devices — the Paper Pro (ferrari) being the natural next — add a profile beside it. Bring your own (extracted) vendor blobs and an SSH key.

Status: working. All subsystem modules are extracted from — and daily drive — the reference device (boot, e-ink, sleep/wake, KoReader, persistence). Interfaces (remarkable.* options, device profiles) may still move before a tagged release.

Layering #

chiappa           distro-agnostic hardware layer for the Paper Pro Move —
  (upstream)      kernel source pin + patches + config, e-ink bridge and
                  power-daemon sources, blob-extraction scripts, hardware/
                  boot/recovery docs. Usable by any distro.
     ▲
     │ inputs (flake=false; modules read paths out of it — other devices
     │         wire in their own hardware layer the same way)
     │
remarkable-nixos  the NixOS integration — subsystem modules parameterized by
  (this repo)     a device profile (remarkable.device.*), one profile per
                  device under devices/<codename>/.
     ▲
     │ your flake imports nixosModules.<codename>
     │
your config       your user + SSH key + the vendor blobs extracted from your
  (private)       own unit. Blobs never ship in any public repo.

Usage #

{
  inputs.remarkable-nixos.url = "github:gitman-101111/remarkable-nixos";
  inputs.remarkable-nixos.inputs.nixpkgs.follows = "nixpkgs";

  outputs = {nixpkgs, remarkable-nixos, ...}: {
    nixosConfigurations.mytablet = nixpkgs.lib.nixosSystem {
      system = "aarch64-linux";                    # build on aarch64 or via binfmt
      modules = [
        remarkable-nixos.nixosModules.chiappa      # subsystems + device profile
        ./my-config.nix                            # your user + extracted blobs
      ];
    };
  };
}

See example/chiappa.nix for the minimum.

What you must provide #

The vendor's firmware/runtime is proprietary and not redistributable, so you extract it from your own unit. The chiappa hardware layer documents and scripts the whole process — docs/obtaining-vendor-blobs.md walks it end to end (the recommended route needs only reMarkable's public recovery image, via recovery/fetch-recovery-image.sh + firmware/extract.sh; no running vendor OS required). Point the options at the results:

One run of chiappa's firmware/extract-vendor-data.sh against the recovery rootfs image produces all of these:

Option What to extract
remarkable.boot.ahabHeader 8 KB AHAB header (boot/ahab-header.bin)
remarkable.eink.vendorRuntime the vendor Qt + libqsgepaper e-ink runtime bundle
remarkable.eink.waveforms panel waveform/colortable tables (/usr/share/remarkable)
remarkable.eink.screens (optional) vendor lifecycle art PNGs
hardware.firmware WiFi/BT/NFC/touch firmware → wire into /lib/firmware

No secrets machinery is assumed — a normal user with an authorized SSH key is enough to boot and log in.

Quickstart #

  1. Enable Developer Mode on the device (unlocks unsigned-FIT boot).
  2. Extract the vendor blobs (table above; scripts + docs in chiappa).
  3. Repartition once for the A/B + /persist layout — docs/partitioning.md. Mind the size trap noted there: your FIRST image (pre-repartition) must be minimal to fit the vendor-sized 4 GiB slot.
  4. Write your config from example/chiappa.nix and build the flashable image: nix build .#nixosConfigurations.<yours>.config.remarkable.boot.rootfsImage
  5. Flash it over SDP with uuu (scripts in chiappa's recovery/uuu-scripts/) and boot. Updates are new images flashed the same way; /persist carries your data across them.

Prerequisites #

  • Developer Mode enabled on the device (moves it to AHAB OEM-Open so unsigned FITs boot). See docs/booting-a-custom-os.md.
  • An aarch64 builder (native, or x86_64 with boot.binfmt.emulatedSystems).
  • The vendor recovery path as an unbrick fallback — docs/recovery.md.

Apps on the panel #

Any Wayland app can run full-screen on the e-ink panel, launched from an "Apps" menu inside KoReader (touch, pen, and an on-screen keyboard that rises on text-field focus all work; the app renders through a software sway session mirrored to the panel with damage-driven partial refreshes):

remarkable.apps.firefox = {
  command = "${pkgs.firefox}/bin/firefox";
  label = "Firefox";
};

Each entry also lands on PATH as remarkable-app-<name>. Per-app options: waveform (2 = GC16 quality, 1 = DU speed) and keyboardHeight. A session log is written to $XDG_RUNTIME_DIR/app-<name>.log.

Kernel #

The kernel is upstream Linux (nixpkgs' linux_latest, so it moves with nix flake update) plus chiappa's kernel/ series: the board device tree, the reMarkable/NXP leaf drivers, and a display bridge mainline lacks. NXP's out-of-tree IW61x WiFi driver is built as an external module package from the nxp-mwifiex input. The FIT carries the kernel-tree DTB, so no vendor DTB is needed. Flash a new kernel to the inactive slot first, where U-Boot's three-strike rollback can undo it.

PIN lock #

remarkable.lock.enable = true;

adds a PIN pad on boot (before the reader UI) and on every resume. Arm it once, on the device:

sudo remarkable-lock-setpin <digits>     # 4-12 digits; hash in /persist/lock/pin

No PIN set = no lock, so a fresh flash never locks you out. This is an access deterrent, not encryption — the disk stays readable over SDP or with physical eMMC access, and the lock gates the panel only (SSH still works: a forgotten PIN is sudo rm /persist/lock/pin away from recovery).

Adding a device #

See devices/README.md.

Credit #

Built on the chiappa hardware-layer project. Community effort to keep this genuinely-nice hardware open.

License #

MIT.

Updating #

What moves, and how each piece is kept current:

What Pinned in Update path
KoReader release koreader input in flake.nix (URL) + flake.lock (hash) Edit the version in the input URL, then nix flake update koreader. Release assets carry the version in their name, so nix flake update alone re-locks the same zip; the update workflow does the URL edit for you weekly.
nixpkgs, chiappa inputs flake.lock nix flake update.
Kernel source nixpkgs input (pkgs.linux_latest) nix flake update. chiappa's kernel/ series is validated on one release; the weekly PR's patch canary reports what stops applying after a bump, and a failing canary means rebasing the series in chiappa first.
WiFi driver nxp-mwifiex input (NXP release tag) in flake.nix Move the tag by hand together with the mwifiex patch in chiappa's kernel/mwifiex/.

The update workflow does all of the above weekly on an arm64 runner — bump KoReader, nix flake update (nixpkgs and chiappa), evaluate the reference config (no builds) — and opens one PR. Build locally (nix build .#checks.aarch64-linux.kernel) and boot it on a device, then merge. Downstream, nix flake update remarkable-nixos in your own config picks the merged pins up.