·nix-platform-specific-options
</>

nix-platform-specific-options

무한 재귀 없이 플랫폼별 옵션(NixOS 대 Darwin)을 사용하여 Nix 모듈을 작성합니다. mkIf가 평가 오류를 일으키거나 플랫폼 전반에 걸쳐 옵션이 존재하지 않는 경우에 사용합니다.

34설치·2트렌드·@edmundmiller

설치

$npx skills add https://github.com/edmundmiller/dotfiles --skill nix-platform-specific-options

nix-platform-specific-options 설치 방법

명령줄에서 nix-platform-specific-options AI 스킬을 개발 환경에 빠르게 설치

  1. 터미널 열기: 터미널 또는 명령줄 도구(Terminal, iTerm, Windows Terminal 등)를 엽니다
  2. 설치 명령어 실행: 이 명령어를 복사하여 실행합니다: npx skills add https://github.com/edmundmiller/dotfiles --skill nix-platform-specific-options
  3. 설치 확인: 설치 후 스킬은 자동으로 AI 코딩 환경에 설정되어 Claude Code, Cursor, OpenClaw에서 사용할 수 있습니다

출처: 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
카테고리
</>개발 도구
인증됨
최초 등록
2026-02-22
업데이트
2026-03-10

Browse more skills from edmundmiller/dotfiles

빠른 답변

nix-platform-specific-options이란?

무한 재귀 없이 플랫폼별 옵션(NixOS 대 Darwin)을 사용하여 Nix 모듈을 작성합니다. mkIf가 평가 오류를 일으키거나 플랫폼 전반에 걸쳐 옵션이 존재하지 않는 경우에 사용합니다. 출처: edmundmiller/dotfiles.

nix-platform-specific-options 설치 방법은?

터미널 또는 명령줄 도구(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