Allow 'hey update' to update individual inputs

This commit is contained in:
Henrik Lissner 2020-10-17 17:23:56 -04:00
parent 514e547a89
commit 1a70fa3bf1
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -59,7 +59,13 @@ function main {
function _update {
echo "Updating NixOS flake"
if [[ "$@" ]]; then
for flake in $@; do
_do nix flake update --update-input "$flake" "$DOTFILES"
done
else
_do nix flake update --recreate-lock-file "$DOTFILES"
fi
}
function _gc {