1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-27 13:39:46 +01:00
home-manager/tests/modules/programs/topgrade/settings.nix

37 lines
651 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 [
{
2024-05-22 20:01:16 +02:00
misc = {
disable = [ "sdkman" "flutter" "node" "nix" "home_manager" ];
2021-04-29 01:56:58 +02:00
2024-05-22 20:01:16 +02:00
remote_topgrades = [ "backup" "ci" ];
2021-04-29 01:56:58 +02:00
2024-05-22 20:01:16 +02:00
remote_topgrade_path = "bin/topgrade";
};
2023-07-08 10:12:35 +02:00
}
2021-04-29 01:56:58 +02:00
2023-07-08 10:12:35 +02:00
{
2024-05-22 20:01:16 +02:00
misc = {
set_title = false;
2021-04-29 01:56:58 +02:00
2024-05-22 20:01:16 +02:00
cleanup = true;
};
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
}