mirror of
https://github.com/thilobillerbeck/dotfiles.git
synced 2024-11-22 07:58: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, ... }:
|
{ 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";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue