feat: add autoUpdates option for ~/.claude.json#45
Merged
Conversation
Adds a nullOr bool `programs.claude.autoUpdates` option, mirroring the existing `autoUpdatesChannel` and `remoteControlAtStartup` options, and wires it into the claudeJsonOverlay so it deep-merges into ~/.claude.json at activation time. null (default) leaves the key unmanaged (Claude Code's own default is true). Pairs with autoUpdatesChannel to give Nix full declarative control of the in-app auto-updater instead of hand-editing ~/.claude.json. Assisted-by: Claude:claude-opus-4-8[1m]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a
programs.claude.autoUpdateshome-manager option (nullOr bool, defaultnull), mirroring the existingautoUpdatesChannel/remoteControlAtStartupoptions, and wires it into theclaudeJsonOverlay(modules/settings.nix) so it deep-merges into~/.claude.jsonat activation time.Why
autoUpdatesis a~/.claude.jsonkey with no Nix knob today — the overlay only managedmcpServersandremoteControlAtStartup. Without this option, enabling/disabling Claude Code's in-app auto-updater required hand-editing~/.claude.json, which is exactly the kind of user-level config that should be declarative.null(default) → unmanaged (Claude Code's own default istrue); no behavior change for existing consumers.true/false→ written verbatim into~/.claude.json.Pairs with
autoUpdatesChannelto give Nix full control of the updater (channel + on/off).Verification
nix flake checkpasses (treefmt, pre-commit, lib-tests, programs-claude-eval).nix-aiconsumer:darwin-rebuild switchwithautoUpdates = trueset~/.claude.json"autoUpdates": truethrough the overlay (no hand-edit).Refs: dryvist/nix-ai (consumer PR sets
autoUpdates = trueand bumps the lock to this rev)🤖 Generated with Claude Code