home/categories/architecture-patterns/khaneliman-khanelinix-modules-common-ai-tools-skills-nix-conditionals-skill-md
architecture-patternsdevelopment

nix-conditionals

Nix conditional patterns: mkIf, optionals, optionalString, mkMerge. Use when writing conditional configuration, avoiding if-then-else, or combining multiple conditional blocks.

khaneliman
maintainer
khaneliman
Updated 1/19/2026
Stars
303
Forks
14
quick start

Installation and usage

Nix conditional patterns: mkIf, optionals, optionalString, mkMerge. Use when writing conditional configuration, avoiding if-then-else, or combining multiple conditional blocks.

Installation
$ install --globalskills.sh
Usage

Once installed, you can use this skill by running the following command in your terminal:

skills use nix-conditionals