Nixpkgs: Add a nixos-stable channel

Created on 6 May 2020  路  6Comments  路  Source: NixOS/nixpkgs

There are cases where its useful to be able to refer to the latest stable nixpkgs, and not need to manually update release numbers.

keywords: current stable

All 6 comments

What are these cases? Don't you want to update manually from old-stable to current-stable? Surely you are running stable for some reason, if you wanted rolling update you would be on unstable already.

This would be very valuable in CI for projects like poetry2nix & emacs-overlay where we support the latest stable release (whatever that happens to be at the time) & unstable.

@prusnak I think the intention was moreso to allow scripting that wasn't so brittle as to only refer to a single release, but whatever the current release at the time is. Instead of referring to nixos-20.03 and then needing to update it ~6 months down the line, one could just "set-and-forget" nixos-stable.

This might also simplify installation, as one might just add "nixos-stable" as a channel instead of figuring out which channel is actually stable. Setting system.stateVersion properly (the default generated configuration.nix does) should prevent most breakages that might be caused by automatically jumping to a next stable release.

This will also allow to use an older CD to always install a newer NixOS version automagically as long as the tooling stays similar and the user updates the channel with nix-channel --update (or was it --upgrade? I'm not using channels much, so I can't tell)

This is a discussion for on discourse so closing.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ob7 picture ob7  路  3Comments

yawnt picture yawnt  路  3Comments

matthiasbeyer picture matthiasbeyer  路  3Comments

sid-kap picture sid-kap  路  3Comments

vaibhavsagar picture vaibhavsagar  路  3Comments