mirror of
https://github.com/nix-community/home-manager
synced 2024-12-27 04:09:47 +01:00
cb09a968e9
This option provides a more convenient way to overlay dummy packages. It also adds a function `config.lib.test.mkStubPackage` that can, e.g., be used for `package` options.
36 lines
666 B
Nix
36 lines
666 B
Nix
{ 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"; };
|
|
}
|
|
];
|
|
};
|
|
|
|
test.stubs.topgrade = { };
|
|
|
|
nmt.script = ''
|
|
assertFileContent \
|
|
home-files/.config/topgrade.toml \
|
|
${./settings-expected.toml}
|
|
'';
|
|
};
|
|
}
|