What is nix-platform-specific-options?
Write Nix modules with platform-specific options (NixOS vs Darwin) without infinite recursion. Use when mkIf causes evaluation errors or options don't exist across platforms. Source: edmundmiller/dotfiles.
Write Nix modules with platform-specific options (NixOS vs Darwin) without infinite recursion. Use when mkIf causes evaluation errors or options don't exist across platforms.
Quickly install nix-platform-specific-options AI skill to your development environment via command line
Source: 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.
Write Nix modules with platform-specific options (NixOS vs Darwin) without infinite recursion. Use when mkIf causes evaluation errors or options don't exist across platforms. Source: edmundmiller/dotfiles.
Stable fields and commands for AI/search citations.
npx skills add https://github.com/edmundmiller/dotfiles --skill nix-platform-specific-optionsWrite Nix modules with platform-specific options (NixOS vs Darwin) without infinite recursion. Use when mkIf causes evaluation errors or options don't exist across platforms. Source: edmundmiller/dotfiles.
Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/edmundmiller/dotfiles --skill nix-platform-specific-options Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw
https://github.com/edmundmiller/dotfiles