GeezerVison is showing github.com — nixos: declare linger for the laptop user so user services start at boot · Issue #5443 · developing-today/code
nixos: declare linger for the laptop user so user services start at boot #5443Labels task/triageQueue packet kind: verify, reproduce, and route this item DescriptionState found (2026-11-04, verified on amd-6)
loginctl show-user user -p Linger returns Linger=yes (and /var/lib/systemd/linger/user exists), so systemd user services on the laptop already start at boot without a login. But that state is imperative — set by hand (believed around 2026-10-23, for RustDesk) — and is not declared anywhere in this repo. A reinstall or a config rebuild from a tree that does not know about it would silently lose it, and the failure mode (user services simply not running until someone logs in) is exactly the kind that goes unnoticed.
Ask
Declare it in the laptop's NixOS configuration in this repo:
users.users.<name>.linger = true;
This should ride the next natural config change — no dedicated switch just for this. While the imperative state holds, nothing is broken.
Boundary worth recording
Linger starts the user manager at boot; it does not unlock the GNOME keyring. Keyring-held credentials still require a graphical login — observed 2026-11-04: after the 05:47 reboot, the laptop gh CLI credential was dead until a desktop login, even with linger on. Fleet services must keep using file-based secrets (sops / Bitwarden), never the keyring, so they are boot-independent. Activitydeveloping-today commented on Nov 4, 2026 ContributorAuthor More actions Correction to the boundary note above, verified minutes after filing (2026-11-04 ~06:47 CST): Drew has since logged into the desktop, and gh auth status on the laptop still fails — "The token in default is invalid" (two independent reads, exit 1). So this credential is not merely keyring-locked pre-login; the stored token itself is dead and needs an interactive gh auth login to replace. The conclusion stands and is stronger: anything that must work unattended on this machine cannot ride on the interactive gh credential — file-based secrets (sops / Bitwarden) or app tokens only. dezren39 commented on Nov 5, 2026 🤖 Agent note · handed off
- Agent: queue worker (repo-worker-code), lane code-s
- Session / ID: task 10040
- Found via: queue claim
- Task: Triage of issue nixos: declare linger for the laptop user so user services start at boot #5443 (nixos: declare linger for the laptop user so user services start at boot) — assigned to the opencode execution lane (session_id null at assignment); parked 20m after handoff checkpoint. The laptop claimant launches the bound opencode session, which drives task 10040 to its terminal state. Attempts 1/6.
dezren39 commented on Nov 5, 2026
Triage result: #5443 remains open. The body says Linger=yes and the linger file exist on the laptop, but this is imperative state not declared in the repo; nothing is currently broken while it holds. The requested NixOS declaration is explicitly to ride the next natural config change, with no dedicated switch. No linked PR or superseding work exists; prior OpenCode handoff had session_id null and its ready time elapsed. Keep the issue deferred to that natural config change; no separate follow-up task is needed. added a commit that references this issue on Nov 9, 2026This issue will close once commit ba46e0e is merged into the 'main' branch.ba46e0e dezren39 commented on Nov 9, 2026 dezren39 commented on Nov 9, 2026 🤖 Agent note · awaiting_ci (broker claim lost — resume brief)
dezren39 commented on Nov 9, 2026 agent-note:v1
task 14069 (small_fix, issue #5443, PR #7685): lane code-p resumed from awaiting_ci and MERGED PR #7685 — merge sha 98888d1, merged 2026-11-09T06:23:05Z; issue #5443 CLOSED completed via Closes. Verification: 1-file diff (users.users.user.linger = true in nixos/users/user/default.nix) read directly; nix-instantiate --parse OK (prior lanes); duplicate PR #7688 already closed/dispositioned. Codex gate: Codex review FAILED on usage limits with zero inline findings — dispositioned by direct head read (snapshot infra note). Basic PR checks remained queued in the repo-wide Actions stall; merged under standing merge authority (CI runs on main tier). Clearing fleet status/queue/work labels per runbook 9.
MetadataMetadatatask/triageQueue packet kind: verify, reproduce, and route this item DevelopmentNo branches or pull requestsIssue actions
|