To update only a specific inputs (eg, nix-secrets and nixpkgs-unstable): nix flake lock --update-input nix-secrets --update-input nixpkgs-unstable