1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-24 03:59:46 +01:00
home-manager/tests/modules/programs/topgrade/settings.nix
2024-05-28 00:03:45 +02:00

36 lines
651 B
Nix

{ lib, ... }:
{
programs.topgrade = {
enable = true;
settings = lib.mkMerge [
{
misc = {
disable = [ "sdkman" "flutter" "node" "nix" "home_manager" ];
remote_topgrades = [ "backup" "ci" ];
remote_topgrade_path = "bin/topgrade";
};
}
{
misc = {
set_title = false;
cleanup = true;
};
commands = { "Purge unused APT packages" = "sudo apt autoremove"; };
}
];
};
test.stubs.topgrade = { };
nmt.script = ''
assertFileContent \
home-files/.config/topgrade.toml \
${./settings-expected.toml}
'';
}