adapted topgrade config

This commit is contained in:
Thilo Billerbeck 2023-11-11 15:20:37 +01:00
parent 65d648326a
commit 33bb5b472f

View file

@ -1,6 +1,8 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
{ let
configPath = if config.machine.isGeneric then "$HOME/.config/home-manager" else "$HOME/.nixos-config";
in {
programs.topgrade = { programs.topgrade = {
enable = true; enable = true;
settings = { settings = {
@ -17,7 +19,13 @@
"flutter" "flutter"
]; ];
}; };
git.repos = [
configPath
];
firmware = { upgrade = true; }; firmware = { upgrade = true; };
pre_commands = {
flakeUpgrade = "cd ${configPath} && nix flake update --commit-lock-file --verbose --repair";
};
}; };
}; };
} }