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