I’m new to NixOS. Do I have to do anything extra to update NixOS? Or do I just update my flake and run nixos-rebuild switch --flake like I normally do to update packages?
You need to update your inputs so that you’re using the 23.11
branch of nixpkgs instead of the old one. In my experience, a couple of things will break, but there’s usually warnings about it.
Oh okay. That makes sense. I should have mentioned im using unstable as my inputs. So I assume I just need to update.
Edit: I just ran neofetch and apparently I’m already running NixOS 24.05. 👍
I’m not sure (I’m about to install it for the first time - on this computer) - According to this all you need to do is:
# nix-channel --add https://channels.nixos.org/nixos-23.11 nixos
# nixos-rebuild switch --upgrade
What if I just want to upgrade some packages? Like not change channel, but Firefox needs an update? I’m not op and don’t use flakes btw
You can add something like this to your config: https://stackoverflow.com/questions/48831392/how-to-add-nixos-unstable-channel-declaratively-in-configuration-nix
You just need to have it fetch the tarball for nixos 23.11 instead of nixos unstable.