Upgrading nixos Version - preferrd way

Hey guys,

I wanted to upgrade from Version 24.05 to 24.11.
There seems to be two ways to upgrade the version, channels and flakes.
Which should be preferred?
The documentation says channels, in some other articles I wrote, that flakes should be taken…

Whats now correct!?
Thanks :smiley:

Depends on what you’re currently using. Flakes are an as-of-yet unstable nix entrypoint format, similar to e.g. npm’s package.json or Rust’s Cargo.toml. It can be used to create NixOS configurations, and if so to specify your nixpkgs version.

Channels are what you’re most likely using if you’re asking this question, and likely should be using to update.

1 Like