• Unmapped@lemmy.ml
    ·
    1 year 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]
      ·
      1 year 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
        1 year 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
          ·
          1 year ago

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

        • frankfurt_schoolgirl [she/her]
          ·
          1 year 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
      1 year 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
        ·
        1 year 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
          1 year 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
    ·
    1 year 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.