Commit Graph
100 Commits
Author SHA1 Message Date
Alexander Heldt baa65b4a41 Update rv flake input 2026-11-26 09:18:05 +01:00
Alexander Heldt 1bcca33a73 pinwheel: Use the Cloudflare One client for the work VPN 2026-11-26 09:00:36 +01:00
Alexander Heldt 9d837f7fbd Update rv flake input 2026-11-25 17:30:00 +01:00
Alexander Heldt ad36d245cc Update ct flake input 2026-11-25 17:29:46 +01:00
Alexander Heldt 045e8e292a pinwheel: Read rv's teams from a secret
rv watches a second team now. Both are listed in the work-rv-teams
secret and read through rv's teamsFile, so the work module does not
name the organisation.
2026-11-25 17:25:32 +01:00
Alexander Heldt fabe57023d pinwheel: Open rv's notifications in the work Firefox profile
rv opens its web UI with $BROWSER, and the browser script sends links to
ff-work only when started under ~/code/work. The rv service ran from the
home directory, so a middle-click on a review notification opened the
UI in ff-alex. Run the service from ~/code/work instead.
2026-11-25 16:21:38 +01:00
Alexander Heldt bebeaeb2e1 pinwheel: Skip worktrees that conflict in wt sync
gt restack stops at a merge conflict mid-rebase, so wt sync left that
worktree half rebased. It now aborts the restack with `gt abort --force`
(without --force it waits for a confirmation prompt), leaving the
worktree as it was, carries on with the rest, and lists the conflicted
worktrees apart from those that failed for other reasons. Restacks run
with --no-interactive so a prompt cannot stall the loop.
2026-11-25 15:30:28 +01:00
Alexander Heldt 9f45ebfb0c Update rv flake input 2026-11-25 09:53:58 +01:00
Alexander Heldt 593f8e6602 pinwheel: Show what the branch changes in .envrc, not its diff from main
The prompt showed `git diff main -- .envrc`, so a branch made before
main changed .envrc showed main's new lines as removed, as if the
branch deleted them. It now shows the branch's own changes, from where
it branched off main, and lists the commits that changed .envrc on main
since then.
2026-11-25 09:25:47 +01:00
Alexander Heldt 19fb6dcf67 pinwheel: Ask before allowing a worktree's .envrc that differs from main's
wt allowed a new worktree's .envrc only when it matched the primary
checkout's, and left it blocked otherwise. A branch based on an older
main has an older .envrc, so its worktree stayed blocked, `direnv exec`
failed, no .bsp/pants.json was written and Metals set up scala-cli
instead. The warning saying so scrolled away when a review started
Emacs.

It now compares with main's .envrc: the same content is allowed as
before, and different content is shown as a diff with a y/N prompt
before anything else runs. Comparing with main rather than the primary's
working copy also stops wt allowing content that was never approved in
the primary.
2026-11-25 08:51:24 +01:00
Alexander Heldt 75591b8bb6 pinwheel: Add rv, the review request watcher
rv (alex/rv on gitea) watches GitHub for pull requests that request a
review from me or from my team at work, notifies on each,
and lists them in a web UI on 127.0.0.1:7778 that opens a review in its
own worktree with Emacs. programs.rv runs `rv serve` as a systemd user
service with the work GitHub token, on the same condition as the other
GitHub-backed work tools.
2026-11-24 18:03:24 +01:00
Alexander Heldt 0e6e7bec8d pinwheel: Prune deleted worktrees in wt sync
A worktree whose directory was deleted by hand stays registered in git,
so `wt sync` ran `gt restack` in a directory that no longer existed and
reported the worktree as failed. It now runs `git worktree prune` before
going through the worktrees, which drops only entries whose directory
is gone.
2026-11-24 17:29:46 +01:00
Alexander Heldt 2fefe711b5 pinwheel: Write .bsp/pants.json in new worktrees
`.bsp/` is gitignored, so a worktree started without the Pants BSP
connection file. Metals then found no build server, ran `scala-cli
setup-ide` and compiled the whole repo as one Scala 3 project with no
third-party dependencies, so go to definition found nothing and
semanticdb never appeared.

When the primary checkout has `.bsp/pants.json`, `wt` now runs `pants
experimental-bsp` in each worktree it adds, in that worktree's devshell
and without starting a pantsd. The runner script it writes records the
devshell's PATH and the checkout's log path, so it is generated rather
than copied from the primary. When direnv cannot load, as when the
`.envrc` differs from the primary's, `wt` says what to run instead.
2026-11-24 17:22:45 +01:00
Alexander Heldt 1eb0b84bd2 pinwheel: Add wt --help and reject unknown wt options
An unknown option such as `-b` or `--help` was taken as a branch name
and passed on to `git worktree add`, which read it as its own option:
`--help` printed git's usage and `-b` failed asking for a value. `wt`
now prints its own usage for `-h`/`--help`, moved there from the
comment at the top of the file, and rejects any other option.
2026-11-24 10:33:11 +01:00
Alexander Heldt bc13103bf2 pinwheel: Run wt sync from the primary checkout
In a worktree, `gt sync` deletes a merged current branch by first
switching to main, which git refuses while the primary has main checked
out. `wt sync` now runs `gt sync` in the primary, which leaves a merged
branch checked out in a worktree alone.

Worktrees whose PR is merged are no longer restacked. They stay until
removed with `wt rm`, so a session in one can still be resumed. The
merged PRs are read from gt's `.graphite_pr_info` cache, which `gt sync`
has just refreshed; gt has no command that lists them.
2026-11-24 10:27:39 +01:00
Alexander Heldt 69ab490919 pinwheel: Add wt sync to restack every worktree
`gt sync` skips branches checked out in another worktree, so a stack
living in one stays on the old main. `wt sync` runs `gt sync`, then
`gt restack` in each worktree not on main. A conflict in one worktree
leaves it mid-rebase and does not stop the others; the failed
worktrees are listed at the end and the exit status is 1.
2026-11-23 08:14:32 +01:00
Alexander Heldt 5d3629715d pinwheel: Add wt for git worktrees beside the primary checkout
`wt <branch>` goes to the worktree holding a branch, creating one in
`<primary>.worktrees/<branch>` if needed; `wt -c` starts a new
Graphite-tracked branch off main in its own worktree; `wt rm` removes
one and keeps the branch.

A new worktree gets `direnv allow` only when its `.envrc` matches the
primary's. In backend it also gets a `.pants.rc` pinning `find_links`
to the primary's `dist/`: `pants.toml` sets it to the checkout's own
path, which put the path into every `requirements.pex` cache key and
made each worktree rebuild them. No lockfile resolves from it.
2026-11-22 18:25:33 +01:00
Alexander Heldt 566d09ffb3 Update ndp flake input 2026-11-22 15:53:42 +01:00
Alexander Heldt 27ba636ce8 Update dagbok flake input 2026-11-20 11:30:41 +01:00
Alexander Heldt 91d6fe4eec Update dagbok flake input 2026-11-20 10:31:03 +01:00
Alexander Heldt f840d76ac2 Update ct flake input 2026-11-20 10:30:53 +01:00
Alexander Heldt 09be69bfea Update ndp flake input 2026-11-20 10:27:50 +01:00
Alexander Heldt b55b960549 pinwheel: Give ndp an Anthropic API key for asking an LLM 2026-11-20 10:27:50 +01:00
Alexander Heldt c908e1356d manatee: Remove solo-referee module and flake input 2026-11-20 08:56:34 +01:00
Alexander Heldt 14d6277b71 Update ndp flake input 2026-11-17 16:47:41 +01:00
Alexander Heldt 13a5c2b4b4 Update dagbok flake input 2026-11-17 14:55:46 +01:00
Alexander Heldt d4d9f5c5aa pinwheel: Turn off code-action hints with refactor-indications
Eglot 1.25 moved code actions to the `refactor` package and made
`eglot-code-action-indications` an obsolete alias for
`refactor-indications`. The alias is set before eglot loads, so the
setting no longer applies and the `refactor` default comes back. Its
eldoc hint then takes the one-line echo area, hiding the hover
signature.
2026-11-17 14:25:42 +01:00
Alexander Heldt 391b08b225 Update ndp flake input 2026-11-17 10:38:18 +01:00
Alexander Heldt 11e7385f02 pinwheel: Fix webcam breaking after resume from hibernation
Hibernation powers off the Lattice USBIO bridge that the ov08x40
sensor and Intel CVS sit behind. usbio has no reset_resume callback,
so on restore the USB core unbinds and rebinds it, which re-creates
the sensor and CVS I2C clients. The new clients lack the fwnode graph
that ipu-bridge built at boot, and ipu-bridge never rebuilds it, so
the camera stays dead until a cold boot.

Patch usbio to redo the bridge handshake in reset_resume instead of
being rebound, and patch gpio-usbio to restore its pin configuration
and output values after such a reset. Both are built from the kernel
source and installed under updates/, sharing the build recipe with
the patched ipu6-isys module.
2026-11-17 10:36:46 +01:00
Alexander Heldt 5e1047f28a Update ndp flake input 2026-11-17 10:36:46 +01:00
Alexander Heldt 008ffd529a pinwheel: Install picard plugin replaygain2 from a pinned source 2026-11-17 09:07:05 +01:00
Alexander Heldt 10e7157e3f Update ndp flake input 2026-11-16 22:14:11 +01:00
Alexander Heldt a702333b8c pinwheel: Scale picard by 1.5 with QT_SCREEN_SCALE_FACTORS 2026-11-16 22:13:41 +01:00
Alexander Heldt fbe9d10fd9 pinwheel: Add picard with the replaygain2 plugin 2026-11-16 22:03:18 +01:00
Alexander Heldt 31ecedfda3 Update ct flake input 2026-11-16 09:04:42 +01:00
Alexander Heldt efbf76a268 Update dagbok flake input 2026-11-16 09:04:32 +01:00
Alexander Heldt 70c437c5f4 Update ct flake input 2026-11-15 21:42:40 +01:00
Alexander Heldt 1f90f07583 Update dagbok flake input 2026-11-15 21:28:30 +01:00
Alexander Heldt 99413dfc02 Update dagbok flake input 2026-11-15 21:18:01 +01:00
Alexander Heldt 503777d0e4 Update ndp flake input 2026-11-15 21:04:07 +01:00
Alexander Heldt be1afd6386 Update dagbok flake input 2026-11-15 15:50:10 +01:00
Alexander Heldt 31a84ff975 Update ndp flake input 2026-11-15 15:49:49 +01:00
Alexander Heldt 42247d2ccd pinwheel: Name the exit node in the tailscale connect notification
The notification shows the exit node's hostname, followed by its city
and country when tailscale knows the node's location.
2026-11-15 15:49:20 +01:00
Alexander Heldt b5a1bdb36f pinwheel: Hibernate instead of suspend when the battery is low
Adds a swap file to hold the hibernation image. The low battery timer and
UPower's critical action now hibernate, and SUPER+SHIFT+x uses
`suspend-then-hibernate` so a suspended laptop hibernates before the
battery runs out.
2026-11-15 15:08:35 +01:00
Alexander Heldt 94f98120cc backwards: Replace tailscale-qs with the official tailscale systray
The `tailscale-qs` extension's node list could not be opened. The
official `tailscale systray` shows the nodes and exit nodes, with the
AppIndicator extension providing a tray in GNOME. The systray never
retries if no tray exists when it starts, so it waits for one first.
2026-11-13 19:42:38 +01:00
Alexander Heldt 7b9231fae6 backwards: Add a raw touchpad bridge for the K400 Plus
The K400 Plus firmware turns two-finger swipes into whole wheel ticks, so
every scroll jumps a fixed distance. A trimmed copy of k400-raw's touchpad
mode switches the touchpad to raw HID++ reporting and exposes it as a
native multitouch touchpad, which GNOME scrolls smoothly.
2026-11-13 19:02:11 +01:00
Alexander Heldt a5bf40eb13 pinwheel: Autoload every dagbok command the README lists 2026-11-13 10:20:06 +01:00
Alexander Heldt 8328157778 pinwheel: Autoload dagbok-refresh instead of the removed dagbok-reload 2026-11-13 10:20:06 +01:00
Alexander Heldt 19770ff258 Update puppy-tracker flake input 2026-11-13 09:14:40 +00:00
Alexander Heldt 71e0d3ad85 manatee: Send Galleriet and disk SMART alerts only to the Pixel
Only the fridge door and water leak alerts need to reach both phones.
2026-11-13 09:14:34 +00:00
Alexander Heldt 7e27822dbc Update dagbok flake input 2026-11-13 10:14:00 +01:00
Alexander Heldt e031163100 Update ndp flake input 2026-11-13 10:14:00 +01:00
Alexander Heldt d7231bec8b pinwheel: Autoload dagbok-year instead of the removed dagbok-open-date 2026-11-13 10:14:00 +01:00
Alexander Heldt 260a3e8a91 Update ct flake input 2026-11-13 10:14:00 +01:00
Alexander Heldt e143f9c00f Update dagbok flake input 2026-11-13 10:14:00 +01:00
Alexander Heldt 24942b532c Update ndp flake input 2026-11-13 10:14:00 +01:00
Alexander Heldt cc73f6bfe8 pinwheel: Toggle the work VPN from waybar without sudo 2026-11-13 10:14:00 +01:00
Alexander Heldt dd8238b3c1 manatee: Alert when Galleriet is above 23°C and notify both phones
Add a `binary_sensor.galleriet_too_warm` template sensor and an alert
that repeats hourly while it's on. Send all Home Assistant
notifications through a `phones` notify group so they reach both the
Pixel and the iPhone, with a critical alert on iOS for water leaks.
2026-11-11 08:57:51 +00:00
Alexander Heldt 490f16ab62 pinwheel: Pass shift+enter and other modified keys through tmux 2026-11-09 14:47:37 +01:00
Alexander Heldt a14ab23497 Update dagbok flake input 2026-11-09 12:46:17 +00:00
Alexander Heldt 2e5d6a638a Update dagbok flake input 2026-11-09 13:17:21 +01:00
Alexander Heldt 799ed089df Update ndp flake input 2026-11-09 13:14:27 +01:00
Alexander Heldt 3ca3c36a8d pinwheel: Show ndp in the waybar music status 2026-11-09 08:42:40 +01:00
Alexander Heldt 73ea89fd01 Update ndp flake input 2026-11-09 07:54:36 +01:00
Alexander Heldt a548a7978b Update ndp flake input 2026-11-08 19:26:10 +01:00
Alexander Heldt d3b3ff9a7b Update ndp flake input 2026-11-08 19:10:01 +01:00
Alexander Heldt eeecb7efc0 manatee: Configure lbsync from an agenix secret 2026-11-08 18:49:48 +01:00
Alexander Heldt 5983a2d821 Update ndp flake input 2026-11-08 18:49:48 +01:00
Alexander Heldt bcfd1f3602 manatee: Run the lbsync Navidrome plugin 2026-11-08 15:49:02 +01:00
Alexander Heldt 1a35a5ba2a Update ndp flake input 2026-11-08 15:49:02 +01:00
Alexander Heldt b9211e2767 pinwheel: Control ndp with the media keys 2026-11-08 15:23:34 +01:00
Alexander Heldt 57fb4835b6 pinwheel: Add ndp, a terminal player for Navidrome
The player's config is generated by its home-manager module; the Navidrome
password stays in an agenix secret that the config reads at startup.
2026-11-08 15:20:00 +01:00
Alexander Heldt 22c5319398 manatee: Add an SSH key for reaching tadpole
Add `alex.manatee-tadpole`, a passphrase-protected key, with a `tadpole`
host entry in manatee's SSH config. tadpole authorizes it next to the
key from pinwheel.
2026-11-07 18:33:06 +00:00
Alexander Heldt 31b55aea1d tadpole: Redirect www.heldtenkelt.se to heldtenkelt.se
www gets its own ACME certificate so that a problem with it can't block
the certificate for heldtenkelt.se.
2026-11-07 15:05:12 +00:00
Alexander Heldt 00d58b9cf8 tadpole: Host heldtenkelt.se
Add the heldtenkelt.se-site flake as an input and serve it with nginx
on tadpole, with its own ACME certificate.
2026-11-07 14:59:33 +00:00
Alexander Heldt 019110b1b4 Update dagbok flake input 2026-11-07 14:35:25 +00:00
Alexander Heldt 8f838752b8 Update dagbok flake input 2026-11-05 14:52:09 +00:00
Alexander Heldt 46c487332f Update dagbok flake input 2026-11-05 08:27:48 +00:00
Alexander Heldt cac5a2b1ef Update ct flake input 2026-11-05 08:46:24 +01:00
Alexander Heldt 49fb9a2c69 Update dagbok flake input 2026-11-05 07:45:16 +00:00
Alexander Heldt 5f6fe7df39 Update dagbok flake input 2026-11-03 14:33:01 +01:00
Alexander Heldt f6fdb33a6e pinwheel: Make tmux pane borders visible
The borders used the terminal background color since the switch to
the grayscale palette, which hid them against the panes. Draw them in
the dim gray used for inactive window names instead.
2026-11-03 14:27:56 +01:00
Alexander Heldt 35f75bb6c7 Update dagbok flake input 2026-11-03 14:22:55 +01:00
Alexander Heldt 2db18e425e pinwheel: Restore claude and emacs panes with tmux-resurrect 2026-11-03 14:22:55 +01:00
Alexander Heldt 914f86db85 pinwheel: Increase foot font size to 17 2026-11-03 14:21:39 +01:00
Alexander Heldt 1034ede3d4 pinwheel: Save and restore tmux sessions with resurrect and continuum 2026-11-03 13:46:56 +01:00
Alexander Heldt 5662ac7055 pinwheel: Fix intermittent webcam failure from IPU6 isys oops
On 7.3 the in-tree IPU6 isys driver can be runtime-suspended while
isys_probe() is still running, before it has set drvdata. The suspend
callback then dereferences a NULL isys, oopses, and psys never probes,
so /dev/ipu-psys0 is missing and the camera HAL fails with "Failed to
open PSYS".

Patch the isys runtime PM callbacks to return early when drvdata is
not set yet. The patched module is built on its own from the kernel
source and installed under updates/, so it overrides the in-tree one
without having to rebuild the whole kernel.
2026-11-03 13:46:56 +01:00
Alexander Heldt 6c4f99d772 pinwheel: Make claude settings writable with nix as defaults 2026-11-03 12:05:53 +01:00
Alexander Heldt 9f48601cbe pinwheel: Rename Emacs theme to sodium 2026-11-03 10:18:40 +01:00
Alexander Heldt 70ab4a27e7 pinwheel: Match tig colors to theme and show added lines in green 2026-11-03 10:05:27 +01:00
Alexander Heldt 1bb3bb7d30 Update ct flake input 2026-11-03 09:50:15 +01:00
Alexander Heldt 9afcbdb3a3 pinwheel: Show green as a muted green in terminals 2026-11-03 09:48:52 +01:00
Alexander Heldt 0cfd42e55a pinwheel: Brighten terminal background and soften text color 2026-11-03 09:28:12 +01:00
Alexander Heldt 9305627a02 pinwheel: Use amber instead of red for decorative Emacs faces 2026-11-03 09:28:12 +01:00
Alexander Heldt cfce92cdc0 pinwheel: Replace purple color scheme with grayscale and amber
Terminals, tmux and Emacs share a grayscale palette with amber
accents instead of Dracula, and the desktop bars and menus use a
matching gray background.
2026-11-03 09:28:12 +01:00
Alexander Heldt 3f319e182f pinwheel: Tint work Firefox toolbars instead of outlining the window 2026-11-03 09:28:12 +01:00
Alexander Heldt edf22641fb pinwheel: Outline work Firefox window instead of tab tops 2026-11-03 09:28:12 +01:00
Alexander Heldt 0c2be0fd29 pinwheel: Restore rounded corners on Firefox tabs 2026-11-03 09:28:12 +01:00
Alexander Heldt 34997adb1b Update dagbok flake input 2026-11-03 08:26:55 +00:00
Alexander Heldt 4026b7e92e manatee: Wait for ZFS mounts before starting sandboxed /mnt/media services 2026-11-02 10:55:35 +00:00