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
|
|
|
}
|