No description
This repository has been archived on 2026-10-19. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • Nix 87.7%
  • Python 12.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Nimmo 8dd9475d23 docs: archive Forgejo repository in favor of GitLab
Development, issues, and updates have moved to https://forge.nimmog.uk/nimmo/token-tv-nix. Use that repository for future checkouts and flake inputs.
2026-10-18 07:57:36 +01:00
.forgejo/workflows Package Token TV and expose a reusable NixOS clock service 2026-10-10 18:56:19 +01:00
modules Package Token TV and expose a reusable NixOS clock service 2026-10-10 18:56:19 +01:00
package Clarify LCARS usage header and period labels 2026-10-11 20:57:09 +01:00
tests Package Token TV and expose a reusable NixOS clock service 2026-10-10 18:56:19 +01:00
.gitignore Initial commit 2026-10-10 18:52:09 +01:00
flake.lock Package Token TV and expose a reusable NixOS clock service 2026-10-10 18:56:19 +01:00
flake.nix Package Token TV and expose a reusable NixOS clock service 2026-10-10 18:56:19 +01:00
LICENSE Initial commit 2026-10-10 18:52:09 +01:00
README.md docs: archive Forgejo repository in favor of GitLab 2026-10-18 07:57:36 +01:00

token-tv.nix

Important

This Forgejo repository is being archived and is no longer maintained. Development, issues, and updates have moved to GitLab: nimmo/token-tv-nix. Use the GitLab repository for new checkouts, flake inputs, and contributions.

Reproducible Token TV package and NixOS service module. The upstream application is pinned to click6067-ship-it/token-tv commit afc60163d17e76ba71f4a7a5184be6dd4fb6baf8.

The package adds an LCARS face with continuous usage gauges, Gemini usage via Antigravity CLI, OpenCode Go usage via HTTP, and stock SmallTV-Ultra transport. It retains the original SD Pro transport. Provider priority is Codex, Gemini, Opencode Go, Claude, then Grok; the clock selects one account per provider and shows at most three rows. Other accounts remain available in the dashboard.

Use

Add this flake as an input and follow your existing nixpkgs:

token-tv.url = "git+https://forge.nimmog.uk/nimmo/token-tv-nix.git?ref=main";
token-tv.inputs.nixpkgs.follows = "nixpkgs";

Import inputs.token-tv.nixosModules.default and configure an existing user:

services.token-tv = {
  enable = true;
  user = "clock"; # Use the user who owns the existing provider logins.
  extraPackages = [ codexPackage antigravityCliPackage ];
};

The service defaults to loopback port 8787 and reads ~/.config/token-tv/config.json. Set listenAddress and port when needed. package, group, home, and configFile can also be overridden. The module creates no provider credentials and opens no firewall ports. Callers own network restrictions, credential provisioning, service ordering for their network/secrets, backups, and failure notification policy. OpenCode usage requires no OpenCode CLI.

Run nix run . -- --help for account and configuration commands, or nix run . -- run --config ~/.config/token-tv/config.json --state-dir ~/.local/state/token-tv for an interactive dashboard. Installing the package alone starts no daemon. Do not place provider credentials or real usage snapshots in this repository.

Clock and service lifecycle

Configure the clock's Wi-Fi on-device, then set device_url to its LAN URL in Token TV's mutable configuration. For stock SmallTV-Ultra also set device_api to "ultra"; the default remains "sdpro". Select "lcars" as the display theme. The computer serving Token TV must remain awake. Ultra updates preserve existing album files and save original album settings. The former firmware theme/image must be selected manually in the clock UI when restoring: no confirmed read API exists for that selection.

The service keeps state in /var/lib/token-tv, precreated with mode 0700 even before clock configuration. Include this path in backups. A missing config file or valid configuration without a clock URL skips startup. Unreadable, malformed or non-object configuration logs a diagnostic and fails startup. Persistent failures stop after three attempts within five minutes. After correcting the configuration, run sudo systemctl reset-failed token-tv and sudo systemctl restart token-tv.

Validation and provenance

nix flake check builds the package (including 75 upstream and local Python tests) and checks generic module wiring plus eight cases against its generated configuration guard. The package, patches and assets were extracted from nimmo/nixos-config MR #308, commit d4b568a31b25e294a1743f3c76ac0f17e89c0ad4. The physical Vega canary used the earlier d35d9c1 package; later error-handling and service fixes were validated without activating them. Fleet-specific wiring and deployment evidence remain in that repository.

The repository's Nix integration uses the existing EUPL-1.2 licence in LICENSE. The pinned upstream Token TV application is MIT-licensed; its upstream licence and notices are retained in the fetched source.