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 = {
|
2023-05-02 23:16:23 +02:00
|
|
|
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
|
|
|
|
];
|
2023-05-02 23:16:23 +02:00
|
|
|
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 23:16:23 +02:00
|
|
|
};
|
2023-05-02 22:47:01 +02:00
|
|
|
}
|