2024-01-21 08:51:14 +01:00
|
|
|
{ config, pkgs, ... }: {
|
|
|
|
programs = {
|
|
|
|
mise = {
|
|
|
|
package = config.lib.test.mkStubPackage { name = "mise"; };
|
|
|
|
enable = true;
|
|
|
|
globalConfig = {
|
|
|
|
tools = {
|
|
|
|
node = "lts";
|
|
|
|
python = [ "3.10" "3.11" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
aliases = { my_custom_node = "20"; };
|
|
|
|
};
|
|
|
|
settings = {
|
|
|
|
verbose = false;
|
|
|
|
experimental = true;
|
|
|
|
disable_tools = [ "node" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nmt.script = ''
|
|
|
|
assertFileExists home-files/.config/mise/config.toml
|
2024-01-21 23:26:31 +01:00
|
|
|
assertFileExists home-files/.config/mise/settings.toml
|
2024-01-21 08:51:14 +01:00
|
|
|
|
|
|
|
assertFileContent home-files/.config/mise/config.toml ${
|
|
|
|
pkgs.writeText "mise.config.expected" ''
|
|
|
|
[aliases]
|
|
|
|
my_custom_node = "20"
|
|
|
|
|
|
|
|
[tools]
|
|
|
|
node = "lts"
|
|
|
|
python = ["3.10", "3.11"]
|
|
|
|
''
|
|
|
|
}
|
|
|
|
|
|
|
|
assertFileContent home-files/.config/mise/settings.toml ${
|
|
|
|
pkgs.writeText "mise.settings.expected" ''
|
|
|
|
disable_tools = ["node"]
|
|
|
|
experimental = true
|
|
|
|
verbose = false
|
|
|
|
''
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
}
|