Claude-skill-registry build-commands
Reference for NixOS build, test, and flake commands. Use when asked about rebuilding, checking config, formatting, or flake operations.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/build-commands" ~/.claude/skills/majiayu000-claude-skill-registry-build-commands && rm -rf "$T"
manifest:
skills/data/build-commands/SKILL.mdsource content
Build/Test Commands
NixOS Operations
- Rebuild system:
sudo nixos-rebuild switch - Link dotfiles:
sudo ln -s /home/cgeorgii/dots/* /etc/nixos - Dry-run config check:
nixos-rebuild dry-build - Build specific config:
nix build .#nixosConfigurations.coco.config.system.build.toplevel
Flake Operations
- Check flake:
nix flake check - Update flake inputs:
nix flake update - Setup dev environment:
(enables pre-commit hooks and development tools)nix develop
Formatting
- Format Nix files:
nixfmt file.nix
Important Notes
- User prefers to run sudo commands manually in a separate terminal
- Always ask before running system-level commands
- All configuration changes should be done declaratively through Nix files