mirror of
https://github.com/nix-community/home-manager
synced 2024-11-16 08:09:45 +01:00
38 lines
744 B
Nix
38 lines
744 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"; };
|
|
}
|
|
];
|
|
};
|
|
|
|
nixpkgs.overlays = [
|
|
(self: super: { topgrade = pkgs.writeScriptBin "dummy-topgrade" ""; })
|
|
];
|
|
|
|
nmt.script = ''
|
|
assertFileContent \
|
|
home-files/.config/topgrade.toml \
|
|
${./settings-expected.toml}
|
|
'';
|
|
};
|
|
}
|