1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-05 10:49:44 +01:00
home-manager/tests/modules/programs/rtx/custom-settings.nix

36 lines
703 B
Nix
Raw Normal View History

2023-06-07 10:32:56 +02:00
{ config, pkgs, ... }: {
programs = {
rtx = {
package = config.lib.test.mkStubPackage { name = "rtx"; };
enable = true;
settings = {
tools = {
node = "lts";
python = [ "3.10" "3.11" ];
};
settings = {
verbose = false;
experimental = false;
};
};
};
};
nmt.script = ''
assertFileExists home-files/.config/rtx/config.toml
assertFileContent home-files/.config/rtx/config.toml ${
pkgs.writeText "rtx.expected" ''
[settings]
experimental = false
verbose = false
[tools]
node = "lts"
python = ["3.10", "3.11"]
''
}
'';
}