mirror of
https://github.com/thilobillerbeck/dotfiles.git
synced 2024-11-21 23:48:49 +01:00
adapted topgrade config
This commit is contained in:
parent
65d648326a
commit
33bb5b472f
1 changed files with 9 additions and 1 deletions
|
@ -1,6 +1,8 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
let
|
||||
configPath = if config.machine.isGeneric then "$HOME/.config/home-manager" else "$HOME/.nixos-config";
|
||||
in {
|
||||
programs.topgrade = {
|
||||
enable = true;
|
||||
settings = {
|
||||
|
@ -17,7 +19,13 @@
|
|||
"flutter"
|
||||
];
|
||||
};
|
||||
git.repos = [
|
||||
configPath
|
||||
];
|
||||
firmware = { upgrade = true; };
|
||||
pre_commands = {
|
||||
flakeUpgrade = "cd ${configPath} && nix flake update --commit-lock-file --verbose --repair";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue