nixos
Ready-to-run NixOS commands: missing CLI tool, prebuilt binary failing with missing shared library or dynamic linker, package/option lookup, non-activating…
Skill by andresgongora
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/andresgongora-nixos
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Shell scripts
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/nixos
What's inside
- Skill name
nixos- Description
- Ready-to-run NixOS commands: missing CLI tool, prebuilt binary failing with missing shared library or dynamic linker, package/option lookup, non-activating rebuild validation. Load when work touches NixOS/Nix (flake, pkgs, home-manager) or command fails and environment is NixOS (e.g. /etc/os-release ID=nixos).
- License
- MIT
- Instructions
- 90 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (3)
- README.md
- SKILL.md
- run-appimage.sh · scripts/
SKILL.md (first lines)
Symptom → command. No Nix theory. Unblock, do not mutate system state. <nix-repo> defaults to `~/.nix` unless otherwise specified. ## Core rules - Missing tool: run ephemerally (see Boundaries for the no-config-edit rule). - Prefer an already-installed alternative first (`rg`/`grep`, `fd`/`find`, `jq`). Only fetch a package when it is the clean tool for the job. - Binary fails on library/linker: assume non-FHS layout, not a missing distro package. Never hunt apt/dnf package names. - Config change: validate by building. `switch`/`boot`/`test` only on explicit user request. - Search option and package names; never guess them. - Append `--show-trace` to any failing Nix eval/build. - Dry-run (`--dry-run`) is costly (time, disk); never run speculatively or "just to check." Run it only when no other way verifies correctness (e.g. distinguishing between candidate fixes). Otherwise propose it as a next step and let the user decide. ## Troubleshooting ### Tool missing or not installed Run without installing: - Preferred solution: `nix shell nixpkgs#PKG -c CMD ARGS` - Legacy fallback: `nix-shell -p PKG --run 'CMD ARGS'` (quote whole command). - Multiple tools: `nix shell nixpkgs#PKG1 nixpkgs#PKG2 -c CMD`. ### Binary fails Load FHS environment if: `error while loading shared libraries`, missing interpreter/dynamic linker, or `No such file or directory` on an ELF that exists. - Preferred solution: `fhs -c "CMD ARGS"`. Example for `uv` (don't use python directly): `fhs -c "uv run ..."`. - Fallback if `fhs` fails: `nix run nixpkgs#steam-run -- CMD ARGS`. - Still failing on one specific library: add it to that module's `targetPkgs` only if the need is persistent. ### Need package or option name - Run: `nix search nixpkgs QUERY`. - Sources: - Packages: https://search.nixos.org/packages - NixOS options: https://search.nixos.org/options - Home Manager options: https://home-manager-options.extranix.com ### Eval error hard to read 1. Run: `nix repl && :lf <nix-repo>`. 2. Then inspect attributes directly. ### Don't know HOST name - Run: `nix flake show --json 2>/dev/null | jq -r '.nixosConfigurations | keys[]'`. - Alternative: list `<nix-repo>/nixos/hosts/*.nix`, then inspect `config.system.hostName` attribute in each file. ### Deployment wants unexpected local builds 1. List exact derivations before activation. 2. Run: `nix build .#nixosConfigurations.HOST.config.system.build.toplevel --dry-run --print-build-logs` ### Trace one listed derivation to its owner - Run: ```bash TOP_DRV=$(nix eval --raw .#nixosConfigurations.HOST.config.system.build.toplevel.drvPath) nix why-depends "$TOP_DRV" /nix/store/HASH-PACKAGE.drv ``` - Never type a `.drv` hash from memory or guesswork. - Separately evaluated package attributes may differ after overrides. ### AppImages AppImage won't run, complains about FUSE, or fails inside `fhs` with a library missing from its baseline set: - Extract instead of running the AppImage directly — avoids the FUSE dependency NixOS doesn't provide by default: `fhs -c "'/path/to.appimage' --appimage-extract"`, then run the extracted `AppRun` inside `fhs`. - Missing library not in `fhs`'s baseline `targetPkgs`: get its store path with `nix eval --raw nixpkgs#PKG.outPath` and prepend `<path>/lib` to `LD_LIBRARY_PATH` when launching `AppRun` inside `fhs`. - Bundled script does both steps and caches the extraction: `scripts/run-appimage.sh <path-to-appimage> [nixpkgs#lib-attr ...]`. ## Boundaries - No activation: no `switch`, `boot`, `test`, `--install-bootloader` without explicit user request. - No config edit to satisfy a one-off tool need. - No `flake.lock` mutation outside a task whose stated goal is a version change. - Generic Linux/app failure with no NixOS cause: drop this playbook, debug normally. - Unpredicted behavior: stop, tell user. Do not silently keep retrying. ## Verification - [ ] Command run matches an instruction above verbatim, with only placeholders (`PKG`, `CMD`, `HOST`) substituted with real, sourced values. - [ ] Any `.drv` or store path used was copied from actual command output, never typed from memory. - [ ] Config change: validated by a rebuild that exited 0, when the user asked for validation. - [ ] No `--dry-run` executed unless required by the task's own correctness check or explicitly requested; otherwise propose as a next step instead. - [ ] No `switch`/`boot`/`test`/`--install-bootloader` ran without explicit user request.
From andresgongora/agent-config, MIT.
More from andresgongora/agent-config
- 0.570score
minion-delegation
andresgongora
Pick and drive bounded minion workers: locate code, edit, lint, review, cleanup, or execute a frozen multi-step mission.
SkillAFreshness: AClaude Code +9 - 0.567score
artifact-vestige-hunt
andresgongora
Finds vestigial residue in code, docs, and agent instructions.
SkillAFreshness: AClaude Code +9 - 0.567score
artifact-markdown
andresgongora
Validates Markdown formatting and frontmatter against nearest repository config.
SkillAFreshness: AClaude Code +9 - 0.567score
docs-write
andresgongora
Manage durable `.agent/` docs: admit, place, update, prune, and validate notes, costly handoffs or bug logs, and plan metadata.
SkillAFreshness: AClaude Code +9 - 0.565score
agent-author
andresgongora
Workflow for creating, editing, or auditing agent-ecosystem artifacts: skills (SKILL.md), subagents and primary agents (agents/*.md), slash commands…
SkillAFreshness: AClaude Code +9 - 0.565score
minion-master
andresgongora
Prepare and dispatch the `minion-master` subagent for one frozen, bounded repository mission.
SkillAFreshness: AClaude Code +9 - 0.561score
planning
andresgongora
Plans non-trivial work interactively.
SkillAFreshness: AClaude Code +9 - 0.556score
tool-bash
andresgongora
Bash command-execution preflight.
SkillAFreshness: AClaude Code +9 - 0.526score
docs
andresgongora
Discovers existing repository knowledge before exploration.
SkillBFreshness: BClaude Code +9 - 0.526score
file-tidy
andresgongora
Maintains file collections from metadata only.
SkillBFreshness: BClaude Code +9 - 0.526score
git
andresgongora
Guides safe Git state changes.
SkillBFreshness: BClaude Code +9 - 0.521score
coding
andresgongora
Provides cross-language coding conventions.
SkillBFreshness: BClaude Code +9
Signals
- Stars
- 0
- Forks
- 1
- Open issues
- 0
- Last commit (this folder)
- Oct 23, 2026 (5 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/andresgongora/agent-config
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from andresgongora
- 0.570score
minion-delegation
andresgongora
Pick and drive bounded minion workers: locate code, edit, lint, review, cleanup, or execute a frozen multi-step mission.
SkillAFreshness: AClaude Code +9 - 0.567score
artifact-markdown
andresgongora
Validates Markdown formatting and frontmatter against nearest repository config.
SkillAFreshness: AClaude Code +9 - 0.567score
artifact-vestige-hunt
andresgongora
Finds vestigial residue in code, docs, and agent instructions.
SkillAFreshness: AClaude Code +9 - 0.567score
docs-write
andresgongora
Manage durable `.agent/` docs: admit, place, update, prune, and validate notes, costly handoffs or bug logs, and plan metadata.
SkillAFreshness: AClaude Code +9 - 0.565score
agent-author
andresgongora
Workflow for creating, editing, or auditing agent-ecosystem artifacts: skills (SKILL.md), subagents and primary agents (agents/*.md), slash commands…
SkillAFreshness: AClaude Code +9 - 0.565score
minion-master
andresgongora
Prepare and dispatch the `minion-master` subagent for one frozen, bounded repository mission.
SkillAFreshness: AClaude Code +9
Cite this page
nixos skill. Agent Mart. https://agentmart.dev/skills/andresgongora-nixos (last updated 2026-10-24)