Solution
Upgrading NixOS/changing channels
Note: sudo is usually needed for NixOS installations in the commands below. Check if the first command returns a valid url without using sudo. If yes, you probably don't have to/shouldn't use sudo from the following commands!
sudo nix-channel --list | grep nixos
sudo nix-channel --add https://channels.nixos.org/nixos-25.11 nixos
sudo nixos-rebuild boot --upgrade
sudo reboot now
You can view the latest stable channel from the manual link below or checking the channel options in search.nixos.org!
Using packages from other channels
{ config, pkgs, ... }:
let
unstable = import (builtins.fetchTarball
"https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz"
) {
config.allowUnfree = true;
};
in
{
environment.systemPackages = with pkgs; [
alacritty
unstable.hyprlock
] ++ (with unstable; [
stremio-linux-shell
discord
]);
}