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

33 lines
585 B
Nix
Raw Normal View History

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