From template github:misterio77/nix-starter-config#standard.
nix flake update
sudo nixos-rebuild switch --flake .#hostname
home-manager switch --flake .#username@hostname
# Get hostname form current flake nixos configuration (replace #hostname)
nix eval .#nixosConfigurations.#hostname.config.networking.hostName
- Add new channel
sudo nix-channel --add https://channels.nixos.org/nixos-25.11 nixos
- Then update input in flake and run
nix flake update
- Test update
sudo nixos-rebuild test --upgrade --flake ".#${HOSTNAME}" --use-remote-sudo
- Switch update
sudo nixos-rebuild switch --upgrade --flake ".#${HOSTNAME}" --use-remote-sudo -p update-25.11