Skip to content

fix(home-manager): activation clobbered by hand-installed fleet-queue timer symlinks — switch activation blocked #7069

Closed

Description

@dezren39

Found 2026-11-07 20:35 CST during the re-run of the Drew-authorized sudo nixos-rebuild switch --flake /home/user/code#amd (after #7042's eval fix, PR #7044, merged). The full system built successfully and the NixOS profile advanced to generation 543, but activation failed (SWITCH_EXIT=4) at the home-manager user activation step:

Nov 07 20:35:42 amd hm-activate-user[184981]: Existing file '/home/user/.config/systemd/user/timers.target.wants/fleet-queue-sweeper.timer' would be clobbered
Nov 07 20:35:42 amd hm-activate-user[184981]: Existing file '/home/user/.config/systemd/user/timers.target.wants/fleet-queue-expire.timer' would be clobbered
Nov 07 20:35:42 amd systemd[1]: home-manager-user.service: Failed with result 'exit-code'.

Cause: on 2026-11-07 ~18:08 the #6803 sweeper lane hand-installed the two timers (wants-symlinks pointing at hand copies in ~/.config/systemd/user/) as an interim measure until the next home-manager switch. The declarative config now wants to own those exact paths and home-manager refuses to clobber unmanaged files (no backupFileExtension configured).

State after the failure: generation 543 is the current system profile and /run/current-system points at it; system units restarted, but home-manager activation did not run — so user-level state (incl. the OpenClaw Telegram config from #7000 and the opencode unit move off the fastlane drop-in) has NOT taken effect yet. Production opencode is still the fastlane 08eca39 process.

Remedy (small): remove the two hand-installed wants-symlinks (and the hand copies they point to — superseded by the nix definitions), then re-run the same switch command; everything is already built, so the re-run is build-free activation only.

Full log: ~/switch-2026-11-07-rerun.log on amd. Blocks: #5647 tripwire completion, #1029 Telegram go-live.

Activity

  1. developing-today commented on Nov 8, 2026

    @developing-today
    Contributor
  2. developing-today commented on Nov 8, 2026

    @developing-today
    Contributor

    Fixed and verified 2026-11-07 evening (continuation of Drew's authorized switch):

    • Removed exactly the two hand-installed symlinks, each verified first as a symlink pointing at the hand-installed unit file:
      • ~/.config/systemd/user/timers.target.wants/fleet-queue-sweeper.timer → /home/user/.config/systemd/user/fleet-queue-sweeper.timer
      • ~/.config/systemd/user/timers.target.wants/fleet-queue-expire.timer → /home/user/.config/systemd/user/fleet-queue-expire.timer
        Nothing else was removed.
    • Re-ran sudo nixos-rebuild switch --flake /home/user/code#amd (sudo via the vaulted route, credential file shredded after job start): SWITCH_EXIT=0. System profile advanced to generation 544 (/nix/store/xbc1r9h5cbxrxd10lan4jyiixd8lh7c3-nixos-system-amd-26.11.20261102.f9887a8); home-manager-user.service activation completed — no clobber errors.
    • The fleet-queue timers are now declarative: the .wants symlinks point into the new home-manager-files store path; fleet-queue-expire.timer is firing every minute and fleet-queue-sweeper.timer is waiting (next Sun 2026-11-08 05:20 CST, the scheduled first observe cycle).

    Post-switch tripwire (all after the successful switch):

    • opencode fastlane drop-ins removed (20-fastlane.conf, 10-vibe-keyring-fix.conf) and the fastlane-gcroot-08eca39 GC root removed; opencode.service restarted from its base unit: ExecStart is now opencode-2.0.30+4b2fc8a-wrapped (the current flake.lock pin — the earlier 1add729 recon was superseded), bound to 127.0.0.1:13420, auth'd local API 200, tailnet leg (amd-6…ts.net:4096) 200.
    • No opencode-claude plugin anywhere in the regenerated ~/.config/opencode/ config.
    • queue-broker fastlane drop-in removed (20-fastlane-6450.conf; 30-turso-queue.conf kept as permanent); broker restarted from its proper unit, listening on 100.99.113.103:4801, 401 without token as expected.
    • Lab tunnel (impl(cluster): first lab Cloudflare Tunnel — connector on amd, lab.security.cab seed ingress #6455): lab-tunnel.service active/running after the switch.
    • OpenClaw proof recorded on OpenClaw: connect chat channels (Slack, Telegram, WhatsApp) #1029.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions