How to switch to a stable channel and install using nix-env without needing the -f option?

Use nix-channel --add https://nixos.org/channels/nixos-20.09 nixpkgs to name the channel, then --remove nixos-20.09, --update and then you can use your new stable default.

1 Like