Hacker News 中文摘要

RSS订阅

NixOS 26.05 -- NixOS 26.05

文章摘要

NixOS 26.05“Yarara”正式发布,将获得七个月的安全更新支持。旧版25.11已停止维护,将于2026年6月30日结束生命周期。

文章总结

NixOS 26.05“Yarara”版本正式发布。该版本由发布经理yayayayaka和jopejoe1共同管理,将提供七个月(至2026年12月31日)的漏洞修复和安全更新。旧版本25.11“Xantusia”已正式弃用,将于2026年6月30日停止安全支持。

本次更新亮点包括:Nixpkgs软件包仓库新增20442个包,更新20641个包,移除17532个过时包;NixOS新增85个模块和1547个配置选项,移除25个模块和355个配置选项。系统启动第一阶段(initrd)默认采用systemd,旧脚本实现已弃用并计划在26.11版本移除。x86_64-darwin平台将在本版本后停止支持,26.11版本将不再为其构建或支持源码编译。GNOME桌面环境更新至50版本“东京”,带来无障碍和显示处理改进。GCC编译器更新至15版本,LLVM保持21版本。

特别感谢Bryan Honof、raf、Yohann Boniface、NixOS基础设施团队和Nixpkgs暂存团队,以及所有贡献者的努力。发布经理表示期待下一个版本NixOS 26.11“Zokor”。

评论总结

以下是对评论内容的总结,涵盖主要观点、论据及不同视角的平衡性:

正面观点:NixOS 的优势

  1. 回滚与稳定性:用户强调 NixOS 的原子回滚功能,减少驱动和系统更新的风险。

    • "With NixOS I can just go back to the old working config." (AyanamiKaine)
    • "It's awesome to have the rollback experience, upgrade whenever you want and also being able to experiment without being afraid of breaking already working stuff." (evilmonkey19)
  2. 集中配置与版本控制:用户赞赏通过单一配置文件管理多台设备,并实现版本控制。

    • "Main reason being able to do clean package/program setup and centralize, version-control my configuration." (tomalaci)
    • "One of the best things about Nix... is having a monorepo that contains the config across all machines." (hombre_fatal)
  3. AI 辅助配置:多位用户提到 LLM(如 Claude)帮助编写 Nix 配置,降低学习门槛。

    • "The thing that really got me over the hump was entirely configuring it using Claude Code." (linsomniac)
    • "Because of LLMs, I now understand the language much better... describing the config to AI usually produces good results." (chem83)
  4. 开发环境与团队协作:Nix 解决“在我机器上能跑”的问题,确保环境一致性。

    • "No more 'Well, it worked on my machine'. You setup a flake.nix in your code repo... all the dependencies are installed." (Nerdrotic)
    • "We use NixOS for all of our robots and servers... hard to imagine how we would do constant updates of our robot fleet without it." (bouk)

负面观点:NixOS 的挑战

  1. 学习曲线与复杂性:用户认为 Nix 语言和系统管理过于复杂,不适合日常使用。

    • "I found it too complicated to manage... it felt as if I was fighting NixOS too much than getting real work done." (shevy-java)
    • "I still have PTSD from trying to run/use Nix on MacOS." (markatkinson)
  2. 开发环境与包管理:开发环境配置仍显繁琐,nixpkgs 更新速度慢。

    • "Development environments are still a pain... not perfect for dependency management and more complicated environments." (chem83)
    • "nixpkgs monorepo doesn't update fast enough IMO... I'm increasingly concerned with AUR-like trust issues." (chem83)
  3. 社区与生态问题:用户关注社区动态、包维护及信任问题。

    • "Let's talk about the important things... how is the drama currently on the Nix community?" (yomismoaqui)
    • "Removed 17532 outdated packages... I appreciate the acknowledgement that more software in nixpkgs is not necessarily better." (allset_)

其他讨论点

  • 服务器与硬件支持:用户探讨 NixOS 在服务器上的使用(如缺乏 LTS),以及 Intel Mac 的兼容性。
    • "Why don’t more people use NixOS on servers? Is it because of no LTS?" (tiffanyh)
    • "How is NixOS on Intel Macs currently? Hopefully Linux can still breathe life into these computers." (unforgivenpasta)
  • 未来期望:用户希望 NixOS 有更易用的发行版(如 Bazzite 风格)或静态类型系统。
    • "I would love a Bazzite-style nixos distribution. Like batteries-included for gaming." (LelouBil)
    • "I sincerely hope that it gets static electricity typing one day." (LelouBil)

总结

评论呈现两极分化:正面用户高度认可 NixOS 的回滚、配置集中化和 AI 辅助能力,认为其解决了系统稳定性和环境一致性问题;负面用户则批评其学习曲线陡峭、开发环境复杂及包管理生态的不足。整体上,NixOS 被视为适合高级用户和团队协作的工具,但普及仍需降低门槛。