• Unmapped@lemmy.ml
    ·
    11 months ago

    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?

    • frankfurt_schoolgirl [she/her]
      ·
      11 months ago

      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.

      • Unmapped@lemmy.ml
        ·
        edit-2
        11 months ago

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

        • Atemu@lemmy.ml
          ·
          11 months ago

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

        • frankfurt_schoolgirl [she/her]
          ·
          11 months ago

          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

    • Ban DHMO 🇦🇺@aussie.zone
      hexagon
      ·
      edit-2
      11 months ago

      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
      
      • λλλ@programming.dev
        ·
        11 months ago

        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

        • Euphoma@lemmy.ml
          ·
          edit-2
          11 months ago

          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.

  • wiki_me@lemmy.ml
    ·
    11 months ago

    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.