Skip to content

mise: allow mutable global configuration - #9733

Merged
khaneliman merged 1 commit into
nix-community:masterfrom
khaneliman:agent/mise-mutable-config
Jul 31, 2026
Merged

mise: allow mutable global configuration#9733
khaneliman merged 1 commit into
nix-community:masterfrom
khaneliman:agent/mise-mutable-config

Conversation

@khaneliman

@khaneliman khaneliman commented Jul 29, 2026

Copy link
Copy Markdown
Collaborator

Description

Add programs.mise.enableMutableConfig. When enabled, Home Manager keeps declared settings in mise/conf.d/home-manager.toml and leaves mise/config.toml writable for commands such as mise use --global.

Settings in the two files should remain disjoint because Mise conflict precedence can vary with the current directory.

Closes #9721.

Checklist

  • Change is backwards compatible.

  • Code formatted with nix fmt or
    nix-shell -A dev --run treefmt.

  • Code tested through nix build .#test-all
    or a targeted nix run .#tests -- <pattern>.

  • Test cases updated/added. See example.

  • Commit messages are formatted like

    {component}: {description}
    
    {long description}
    

    See CONTRIBUTING for more information and recent commit messages for examples.

  • If this PR adds a new module

    • Added myself as module maintainer. See example.
    • Generate a news entry. See News
    • Basic tests added. See Tests
  • If this PR adds an exciting new feature or contains a breaking change.

    • Generate a news entry. See News

@home-manager-ci
home-manager-ci Bot requested a review from pedorich-n July 29, 2026 03:10
@khaneliman
khaneliman force-pushed the agent/mise-mutable-config branch from bcd52b1 to 3b0bc1b Compare July 29, 2026 03:17

@pedorich-n pedorich-n left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! I wasn't mentioned in the issue, so I missed it.
A couple of questions:

Comment thread modules/programs/mise.nix Outdated
Comment thread modules/programs/mise.nix
Keep declared settings in conf.d while allowing Mise to manage undeclared values in its writable global config.
@khaneliman
khaneliman force-pushed the agent/mise-mutable-config branch from 3b0bc1b to ae9f454 Compare July 31, 2026 03:40
@khaneliman
khaneliman requested a review from pedorich-n July 31, 2026 03:43
@khaneliman
khaneliman merged commit 2e67159 into nix-community:master Jul 31, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: programs.mise.globalConfig makes $XDG_CONFIG_HOME/mise/config.toml read-only, preventing using mise use --global

2 participants