在 Manus 中运行任何 Skill
一键导入
一键导入
一键在 Manus 中运行任何 Skill
开始使用nix-flake
星标132
分支10
更新时间2026年2月8日 10:42
Debug and evaluate Nix flake expressions
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
Debug and evaluate Nix flake expressions
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Deep debugging of Nix expressions, evaluation, and derivations
Create and structure Nix modules for darwin, NixOS, or home-manager
Manage nix-managed launchd and systemd services
Nix flakes, nix-darwin, NixOS, and home-manager development assistance
| name | nix-flake |
| description | Debug and evaluate Nix flake expressions |
| allowed-tools | ["Bash","Read"] |
# Show all outputs
nix flake show
nix flake show --json | jq
# Metadata and inputs
nix flake metadata
nix flake metadata --json | jq '.locks.nodes | keys'
# Check validity
nix flake check
nix flake check --show-trace
# Basic evaluation
nix eval .#attr
nix eval .#attr --json | jq
nix eval .#attr --raw # No quotes for strings
nix eval .#attr --apply 'f' # Apply function
# Common flake paths
nix eval .#darwinConfigurations.<host>.config.<path>
nix eval .#darwinConfigurations.<host>.options.<path>
nix eval .#homeConfigurations."<user>@<host>".config.<path>
nix eval .#nixosConfigurations.<host>.config.<path>
nix eval .#packages.<system>.<name>.meta
# Introspection
nix eval .#someSet --apply builtins.attrNames
nix eval .#someSet --apply 'x: builtins.mapAttrs (k: v: builtins.typeOf v) x'
# Debug flags
nix eval .#attr --show-trace # Stack trace
nix eval .#attr --debugger # Interactive debugger
nix repl --expr 'builtins.getFlake (toString ./.)'
:? Help
:p EXPR Pretty print
:t EXPR Show type
:b DRV Build
:l PATH Load file
:lf FLAKE Load flake
:r Reload
:doc FN Documentation
# What's in this set?
builtins.attrNames darwinConfigurations
# What type is it?
builtins.typeOf someValue
# Function arguments
builtins.functionArgs someFn
# Where is this defined?
builtins.unsafeGetAttrPos "attr" someSet
# Option definition sources
options.services.nginx.enable.definitionsWithLocations
# Update all
nix flake update
# Update specific input
nix flake lock --update-input nixpkgs
# Override input temporarily
nix build .#pkg --override-input nixpkgs path:/local/nixpkgs
# Show input tree
nix flake metadata --json | jq '.locks.nodes'
| Error | Quick Fix |
|---|---|
attribute missing | --apply builtins.attrNames |
infinite recursion | --show-trace, check imports |
unexpected argument | Check builtins.functionArgs |
cannot coerce | Use toString or toJSON |
not a valid flake | Check flake.nix syntax |