Add reset of inputs to autoUpgrade flags

This commit is contained in:
batteredbunny 2024-03-05 21:22:48 +02:00 committed by batteredbunny
parent 2294646f61
commit 2d3512483a

View file

@ -20,17 +20,22 @@ in {
config.allowUnfree = true;
};
system.autoUpgrade = {
system.autoUpgrade = let
manualInputs = inputs: ["--update-input"] ++ lib.intersperse "--update-input" inputs;
in {
enable = true;
allowReboot = true;
flake = "/etc/nixos";
flags = [
"--update-input"
"nixpkgs"
"--update-input"
"nix-minecraft"
"--commit-lock-file"
];
flags =
[
"--commit-lock-file"
]
++ manualInputs [
"nixpkgs"
"nix-minecraft"
"lastfm-status"
"catnip-website"
];
};
nix = {