Is it bad to frequently run sudo nixos-rebuild switch --upgrade?
Does it add more wear & tear to SSDs?
How often do folks run the command to upgrade their packages and system?
Is it bad to frequently run sudo nixos-rebuild switch --upgrade?
Does it add more wear & tear to SSDs?
How often do folks run the command to upgrade their packages and system?
I update about every other day.
Beyond that, I do of course rebuild when I did actually change something, though then I avoid doing an update at the same time, its easier then to understand whether a problem comes from my most recent change or the update.
I run the command about once a week to once a month. Depends on the device that needs my attention. Obviously if I’ve configured some new packages or settings, I’ll run it more frequently, depending on how demanding I want the config to be built.
I’ve loved NixOS so much that I have it running on 10 different devices (mixed with new and old, daily drivers and former daily drivers).
Occasionally, when a new version of NixOS is released, I’m more intrigued to run the command with the new channel.
The default frequency when using auto upgrades is once a day (NixOS Search). Apart from the ~100MB from nixpkgs itself, very few packages are updated more than once a week (even including changes to dependencies) so there’s little additional wear associated with more frequent updates.
Because updating packages can take a long time (I use a custom Linux config and Nvidia kernel modules) I don’t update packages when making configuration changes (although the daily upgrade will still update them).