`--recreate-lock-file` is deprecated
On the "Updating the System" page, this command is given:
```
sudo nixos-rebuild switch --recreate-lock-file --flake .
```
If I run this, I get a warning:
> warning: '--recreate-lock-file' is deprecated and will be removed in a future version; use 'nix flake update' instead.
I don't know if that means that it's no longer possible to update the system in one command, but you always need two.
关闭于 2025-04-16 0 条评论