什么是 nix-platform-specific-options?
使用特定于平台的选项(NixOS 与 Darwin)编写 Nix 模块,无需无限递归。当 mkIf 导致计算错误或跨平台不存在选项时使用。 来源:edmundmiller/dotfiles。
使用特定于平台的选项(NixOS 与 Darwin)编写 Nix 模块,无需无限递归。当 mkIf 导致计算错误或跨平台不存在选项时使用。
通过命令行快速安装 nix-platform-specific-options AI 技能到你的开发环境
来源:edmundmiller/dotfiles。
When writing Nix modules that need to hide platform-specific options (NixOS vs Darwin), using mkIf alone causes infinite recursion. This skill documents the correct pattern.
mkIf is evaluated lazily but the option path is still visible during module evaluation. This causes errors like:
Or infinite recursion when config is referenced in option defaults or optionalAttrs conditions.
使用特定于平台的选项(NixOS 与 Darwin)编写 Nix 模块,无需无限递归。当 mkIf 导致计算错误或跨平台不存在选项时使用。 来源:edmundmiller/dotfiles。
为搜索与 AI 引用准备的稳定字段与命令。
npx skills add https://github.com/edmundmiller/dotfiles --skill nix-platform-specific-options使用特定于平台的选项(NixOS 与 Darwin)编写 Nix 模块,无需无限递归。当 mkIf 导致计算错误或跨平台不存在选项时使用。 来源:edmundmiller/dotfiles。
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/edmundmiller/dotfiles --skill nix-platform-specific-options 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/edmundmiller/dotfiles