dotfiles/home-manager/programs/topgrade.nix

32 lines
763 B
Nix
Raw Normal View History

2023-05-02 22:47:01 +02:00
{ config, pkgs, lib, ... }:
2023-11-11 15:20:37 +01:00
let
2023-11-11 16:41:01 +01:00
configPath = if config.machine.isGeneric then "${config.home.homeDirectory}/.config/home-manager" else "${config.home.homeDirectory}/.nixos-config";
2023-11-11 15:20:37 +01:00
in {
2023-05-02 22:47:01 +02:00
programs.topgrade = {
enable = true;
settings = {
2023-07-21 22:50:24 +02:00
misc = {
assume_yes = true;
ignore_failures = [ "git_repos" ];
no_retry = true;
pre_sudo = false;
cleanup = true;
skip_notify = true;
2023-09-11 15:46:02 +02:00
disable = [
"bun"
"tldr"
"flutter"
];
2023-07-21 22:50:24 +02:00
};
2023-11-11 15:20:37 +01:00
git.repos = [
configPath
];
firmware = { upgrade = true; };
2023-11-11 15:20:37 +01:00
pre_commands = {
flakeUpgrade = "cd ${configPath} && nix flake update --commit-lock-file --verbose --repair";
};
2023-05-02 22:47:01 +02:00
};
};
2023-05-02 22:47:01 +02:00
}