home-manager/tests/modules/programs/topgrade/settings.nix

33 lines
585 B
Nix
Raw Normal View History

2023-07-08 08:12:35 +00:00
{ lib, ... }:
2021-04-28 23:56:58 +00:00
{
2023-07-08 08:12:35 +00:00
programs.topgrade = {
enable = true;
2021-04-28 23:56:58 +00:00
2023-07-08 08:12:35 +00:00
settings = lib.mkMerge [
{
disable = [ "sdkman" "flutter" "node" "nix" "home_manager" ];
2021-04-28 23:56:58 +00:00
2023-07-08 08:12:35 +00:00
remote_topgrades = [ "backup" "ci" ];
2021-04-28 23:56:58 +00:00
2023-07-08 08:12:35 +00:00
remote_topgrade_path = "bin/topgrade";
}
2021-04-28 23:56:58 +00:00
2023-07-08 08:12:35 +00:00
{
set_title = false;
cleanup = true;
2021-04-28 23:56:58 +00:00
2023-07-08 08:12:35 +00:00
commands = { "Purge unused APT packages" = "sudo apt autoremove"; };
}
];
};
2021-04-28 23:56:58 +00:00
2023-07-08 08:12:35 +00:00
test.stubs.topgrade = { };
2021-04-28 23:56:58 +00:00
2023-07-08 08:12:35 +00:00
nmt.script = ''
assertFileContent \
home-files/.config/topgrade.toml \
${./settings-expected.toml}
'';
2021-04-28 23:56:58 +00:00
}