Hi,
Currently if your NixOS configuration is flake-based and you want to automatically update some of the flake’s inputs during the system’s autoUpgrade, the solution is to add something like [ "--update-input" "my-input" "--commit-lock-file" ]
to system.autoUpgrade.flags
(as described in the system.autoUpgrade.flags
description for instance).
But the --update-input
flag is deprecated:
❯ nix flake lock --update-input nixpkgs
warning: '--update-input' is a deprecated alias for 'flake update' and will be removed in a future version.
and the suggested replacement, using flake update
, is not compatible with system.autoUpgrade.flags
since it is not a flag that can be added but another command entirely.
Now that --update-input
is deprecated, what is the go-to method for automatically updating flake inputs during autoUpgrade ?