4 Recipe: enable your first category
| Field | Value |
|---|---|
| Tool | kailash (category modules) |
| Section | Getting started |
| Level | easy |
| Time | ~10 min + a rebuild |
| Layer/Category | CLASSIC (+ any layer) |
| Tags | getting-started, taxonomy, category, nixos |
4.1 Problem
The booted image carries the default tool set. The task: extend the set — say the ATTACK A-2 category for LLM prompt-injection work — while the declarative build stays intact. There is no apt install on Kailash. Enabling a category is a configuration change that a rebuild applies. The result is reproducible, and the change stays reviewable.
4.2 Solution
Find the category id. Enable it in the system configuration. Rebuild. Verify:
# 1. Identify the category a tool belongs to
kailash info garak # -> category: a-02-prompt-injection-jailbreaks
# 2. Add the enablement option to your system configuration
# (configuration.nix or your host module), layer-scoped per the
# category-module contract:
#
# kailash.layers.attack.categories.a-02-prompt-injection-jailbreaks.enable = true;
#
# (a `kailash enable <category>` helper that emits this snippet is
# roadmap-stage — the landed CLI slice is list/search/info/
# profile list/manifest validate; until it lands, write the
# option path directly as above)
# 3. Rebuild and switch
sudo nixos-rebuild switch
# 4. Verify what the manifest declares for that category
kailash list --category a-02-prompt-injection-jailbreaksWhat success looks like:
- the rebuild applies cleanly
- the category module’s package list comes straight from the manifest — no hand-maintained package set
kailash list --category <cat-id>returns the category’s row inventory, and those tools are on the system’s PATH- a rebuild without changes reproduces the same tool set byte-for-byte (same lock)
4.3 Discussion
- One category = one module: every category is a single module file. The module mounts its configuration from the manifest’s package list. Enabling it is a declarative act over the four-layer, 32-category taxonomy (CLASSIC / ATTACK / DEFENCE / OPS). The profiles use the same surface.
- Safety classes still govern: enabling a category does not flatten safety classes.
requires-targettools (most of ATTACK) do not fire without an explicit target.exprows (e.g. hexstrike-ai in A-7) install only via gate wrappers and stay double-keyed — see Gate lab-mode and exp-classified tools. - Data packs are NOT categories: wordlists and corpus packs (seclists, pw-packs, the C-7 SDR pack) use opt-in
kailash-data.*derivations. The packs stay excluded from every default image by construction. An enabled category never carries corpus packs — see Refresh wordlists and data packs. - Pick the target scope deliberately: on Kailash, the profile statement (via image choice) plus the enabled categories expresses the intent. The build (flake lock) makes that intent exact.
4.4 See also
- First profile and first run
- Boot a verified release image
- Taxonomy overview and the category-module contract: guide Part I · the OS spec
- Refresh wordlists and data packs — the deliberate opt-in path for corpora
ref: category-module contract (spec module listing) - verified 2026-10-14.