apu: reference wake via runtime path in the wake user key #22

Open
hermes wants to merge 1 commit from fix/apu-wake-ifd into main
Collaborator

Embedding the wake store path in the wake user's authorized_keys file made eval of the apu toplevel require building the x86_64-only wake derivation via IFD (pkgs.writeText interpolates the store path, and sshd's authorized_keys.d machinery readFiles the key file during eval). On the aarch64 CI runner that build fails with "platform mismatch: Required system x86_64-linux, Current aarch64-linux", which is why the scheduled update-flake-lock runs on main fail (runs #86, #114, #236).

Point the forced command at the runtime path instead — wake is already in environment.systemPackages on apu, so /run/current-system/sw/bin/wake exists at runtime. Eval no longer forces the wake build.

Embedding the wake store path in the wake user's authorized_keys file made eval of the apu toplevel require building the x86_64-only wake derivation via IFD (`pkgs.writeText` interpolates the store path, and sshd's authorized_keys.d machinery `readFile`s the key file during eval). On the aarch64 CI runner that build fails with "platform mismatch: Required system x86_64-linux, Current aarch64-linux", which is why the scheduled `update-flake-lock` runs on main fail (runs #86, #114, #236). Point the forced command at the runtime path instead — `wake` is already in `environment.systemPackages` on apu, so `/run/current-system/sw/bin/wake` exists at runtime. Eval no longer forces the wake build.
apu: reference wake via runtime path in the wake user key
All checks were successful
Build Images / build (pull_request) Successful in 42s
Check / check (pull_request) Successful in 4m30s
b03a162330
Embedding the wake store path in the wake user's authorized_keys file
made eval of the apu toplevel require building the x86_64-only wake
derivation via IFD, which fails on the aarch64 CI runner (platform
mismatch). Point the forced command at the runtime path instead —
wake is already in environment.systemPackages on apu.

Fixes the failing update-flake-lock runs (platform mismatch building
wake.drv).
repomaa force-pushed fix/apu-wake-ifd from b03a162330
All checks were successful
Build Images / build (pull_request) Successful in 42s
Check / check (pull_request) Successful in 4m30s
to 36bb0d3fea
Some checks failed
Build Images / build (pull_request) Has been cancelled
Check / check (pull_request) Has been cancelled
2026-09-27 22:48:51 +03:00
Compare
repomaa force-pushed fix/apu-wake-ifd from 36bb0d3fea
Some checks failed
Build Images / build (pull_request) Has been cancelled
Check / check (pull_request) Has been cancelled
to 5b6bfb7c02
All checks were successful
Build Images / build (pull_request) Successful in 40s
Check / check (pull_request) Successful in 3m45s
2026-09-27 22:56:23 +03:00
Compare
All checks were successful
Build Images / build (pull_request) Successful in 40s
Check / check (pull_request) Successful in 3m45s
Required
Details
This pull request is blocked because it's outdated.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin fix/apu-wake-ifd:fix/apu-wake-ifd
git switch fix/apu-wake-ifd
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
repomaa/nixos!22
No description provided.