·nix-platform-specific-options
</>

nix-platform-specific-options

Schreiben Sie Nix-Module mit plattformspezifischen Optionen (NixOS vs. Darwin) ohne unendliche Rekursion. Wird verwendet, wenn mkIf zu Auswertungsfehlern führt oder plattformübergreifend keine Optionen vorhanden sind.

34Installationen·2Trend·@edmundmiller

Installation

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

So installieren Sie nix-platform-specific-options

Installieren Sie den KI-Skill nix-platform-specific-options schnell in Ihrer Entwicklungsumgebung über die Kommandozeile

  1. Terminal öffnen: Öffnen Sie Ihr Terminal oder Kommandozeilen-Tool (Terminal, iTerm, Windows Terminal, etc.)
  2. Installationsbefehl ausführen: Kopieren Sie diesen Befehl und führen Sie ihn aus: npx skills add https://github.com/edmundmiller/dotfiles --skill nix-platform-specific-options
  3. Installation überprüfen: Nach der Installation wird der Skill automatisch in Ihrer KI-Programmierumgebung konfiguriert und ist bereit zur Verwendung in Claude Code, Cursor oder OpenClaw

Quelle: 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.

Schreiben Sie Nix-Module mit plattformspezifischen Optionen (NixOS vs. Darwin) ohne unendliche Rekursion. Wird verwendet, wenn mkIf zu Auswertungsfehlern führt oder plattformübergreifend keine Optionen vorhanden sind. Quelle: edmundmiller/dotfiles.

Fakten (zitierbereit)

Stabile Felder und Befehle für KI/Such-Zitate.

Installationsbefehl
npx skills add https://github.com/edmundmiller/dotfiles --skill nix-platform-specific-options
Kategorie
</>Entwicklung
Verifiziert
Erstes Auftreten
2026-02-22
Aktualisiert
2026-03-10

Browse more skills from edmundmiller/dotfiles

Schnelle Antworten

Was ist nix-platform-specific-options?

Schreiben Sie Nix-Module mit plattformspezifischen Optionen (NixOS vs. Darwin) ohne unendliche Rekursion. Wird verwendet, wenn mkIf zu Auswertungsfehlern führt oder plattformübergreifend keine Optionen vorhanden sind. Quelle: edmundmiller/dotfiles.

Wie installiere ich nix-platform-specific-options?

Öffnen Sie Ihr Terminal oder Kommandozeilen-Tool (Terminal, iTerm, Windows Terminal, etc.) Kopieren Sie diesen Befehl und führen Sie ihn aus: npx skills add https://github.com/edmundmiller/dotfiles --skill nix-platform-specific-options Nach der Installation wird der Skill automatisch in Ihrer KI-Programmierumgebung konfiguriert und ist bereit zur Verwendung in Claude Code, Cursor oder OpenClaw

Wo ist das Quell-Repository?

https://github.com/edmundmiller/dotfiles