nix-conditionals

Community

Simplify Nix configs with safe conditionals.

Authoraytordev
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Nix configuration often suffers from verbose conditionals and brittle merges. This skill provides idiomatic patterns using lib.mkIf, lib.mkMerge, lib.optionals, and lib.optionalString to write robust, composable conditional blocks and safe list handling.

Core Features & Use Cases

  • mkIf - guard configuration blocks without breaking module merging
  • mkMerge - combine conditional blocks into a single definition
  • optionals - conditionally append list items safely
  • optionalString - render strings only when needed Real-world use cases include toggling features in NixOS configurations based on system attributes or user options.

Quick Start

Use these patterns in a Nix configuration to guard features and compose conditional lists with minimal boilerplate.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: nix-conditionals
Download link: https://github.com/aytordev/system/archive/main.zip#nix-conditionals

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.