3 points

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?

permalink
report
reply

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
permalink
report
parent
reply
1 point

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

permalink
report
parent
reply
1 point
*

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.

permalink
report
parent
reply

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.

permalink
report
parent
reply
2 points
*

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. 👍

permalink
report
parent
reply
4 points

Yeah, as a nixos-unstable user, you’ve been running “23.11” for the past 6 months ;)

permalink
report
parent
reply

yeah if you’re using unstable than it’s rolling release and you just need to update regularly. the point releases shouldn’t matter too much

permalink
report
parent
reply
1 point

This bug still exists (using nix-channel without name causes errors, a basic feature IMO) so watch out.

Unfortunately nix still needs work on it’s UX.

permalink
report
reply

Linux

!linux@lemmy.ml

Create post

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Community stats

  • 43

    Monthly active users

  • 3.3K

    Posts

  • 19K

    Comments