2.home-manager/tests/modules/programs/mise/custom-settings-renamed.nix
Damian Pomykała 360620ec9d
mise: remove the settings option
mise no longer supports the separate `settings.toml` file for settings.
Settings should be defined in the global configuration (`globalConfig`).
2026-01-12 14:15:13 -06:00

35 lines
793 B
Nix

{
config,
lib,
options,
pkgs,
...
}:
{
programs = {
mise = {
package = config.lib.test.mkStubPackage { name = "mise"; };
enable = true;
settings = {
disable_tools = [ "node" ];
experimental = true;
verbose = false;
};
};
};
test.asserts.warnings.expected = [
"The option `programs.mise.settings' defined in ${lib.showFiles options.programs.mise.settings.files} has been renamed to `programs.mise.globalConfig.settings'."
];
nmt.script = ''
assertFileExists home-files/.config/mise/config.toml
assertFileContent home-files/.config/mise/config.toml ${pkgs.writeText "mise.config.expected" ''
[settings]
disable_tools = ["node"]
experimental = true
verbose = false
''}
'';
}