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