How to update a single flake input?

Yeah, but why?

Why do we have nix flake update and nix flake lock that both specifically work to update the lock file?

Choosing to consolidate around

  • nix flake lock --update-all
  • nix flake lock --update-input <foo>

or

  • nix flake update --input <name>
  • nix flake update --all

would remove yet another mental hurdle of using nix cli v2.

Is there a reasoning for the split I’m missing?

I opened `nix flake update --single <name>` is more intuitive than `nix flake lock --update` · Issue #5110 · NixOS/nix · GitHub rushedly last night.

21 Likes