更新nixos到25.05

更新nixos到25.05

💡 原文中文,约500字,阅读约需2分钟。
📝

内容提要

NixOS于5月23日发布25.05版本。更新步骤包括编辑配置文件,将system.stateVersion改为25.05,添加更新频道,并执行nixos-rebuild switch --upgrade。用户还可配置自动更新。

🎯

关键要点

  • NixOS于5月23日发布25.05版本。
  • 更新步骤包括编辑配置文件,将system.stateVersion改为25.05。
  • 添加25.05的更新频道。
  • 执行nixos-rebuild switch --upgrade进行更新。
  • 用户可配置自动更新,编辑配置文件加入system.autoUpgrade.enable = true和system.autoUpgrade.allowReboot = false。
➡️

继续阅读