Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 965 Bytes

UPDATE.md

File metadata and controls

31 lines (22 loc) · 965 Bytes

How to Update to a New NixOS Version

  1. Update the following inputs in flake.nix to use the new NixOS version:

    • nixpkgs
    • home-manager
    • stylix
  2. Update state version for NixOS and Home Manager

    2.1 Check the release notes if something needs to be changed.

    2.2 Apply the changes if needed.

    2.3 Update state version.

  3. Update flake.lock to use the new inputs

    nix flake update
  4. Build the NixOS system with the new NixOS version, then reboot

    sudo nixos-rebuild boot --flake ~/dotfiles
    reboot