mise no longer supports the separate `settings.toml` file for settings. Settings should be defined in the global configuration (`globalConfig`).
35 lines
793 B
Nix
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
|
|
''}
|
|
'';
|
|
}
|