About
This skill provides specialized guidance for creating cross-platform Nix modules, specifically addressing the challenges of sharing configurations between NixOS and macOS (nix-darwin). It solves the common 'infinite recursion' problem by establishing clear boundaries between parse-time platform checks using optionalAttrs and lazy-evaluated configuration checks using mkIf. By following these established patterns, developers can create maintainable dotfiles and system configurations that gracefully handle platform-specific options without triggering evaluation failures.