一键导入
nyx-update
Update Nyx flake inputs and rebuild. Use when updating nixpkgs, home-manager, hyprland, or other flake inputs to get new package versions or fixes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Update Nyx flake inputs and rebuild. Use when updating nixpkgs, home-manager, hyprland, or other flake inputs to get new package versions or fixes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Run the correct rebuild command for the current Nyx host. Use when the user wants to apply config changes, switch configurations, or rebuild the system. Detects platform automatically.
Add a new host to the Nyx flakes configuration. Use when the user wants to configure a new machine, add a new system, or onboard a new host to the repo.
Create a new nyx.* toggle module for the Nyx configuration. Use when adding a new feature, service, or application as a reusable toggleable module.
| name | nyx-update |
| description | Update Nyx flake inputs and rebuild. Use when updating nixpkgs, home-manager, hyprland, or other flake inputs to get new package versions or fixes. |
| argument-hint | ["input-name or \"all\""] |
| user-invocable | true |
| allowed-tools | Bash(nix flake update *), Bash(nix flake show), Bash(nix build *), Bash(./switch.sh), Bash(sudo nixos-rebuild *), Bash(sudo darwin-rebuild *), Bash(home-manager switch *), Bash(git diff *), Bash(git add *), Bash(git commit *) |
The user wants to update their Nyx flake inputs.
nix flake update
nix flake update nixpkgs
nix flake update home-manager
nix flake update hyprland
nix flake update nixvim
# etc.
| Input | What updates |
|---|---|
nixpkgs | All system and home packages |
home-manager | Home-manager itself |
hyprland | Hyprland compositor and plugins |
nixvim | Neovim configuration framework |
agenix | Secret management tool |
darwin | nix-darwin (macOS) |
nix-homebrew | Homebrew integration |
nixos-wsl | WSL2 integration |
nix-on-droid | Android Nix |
kmonad | Keyboard remapping |
disko | Disk partitioning |
Update inputs:
nix flake update
# or for a single input:
nix flake update nixpkgs
Check what changed:
git diff flake.lock
Dry build to catch breakage before switching:
sudo nixos-rebuild dry-build --flake .#<hostname>
# or for Darwin:
sudo darwin-rebuild dry-build --flake .
Apply if build succeeds:
./switch.sh
Commit the lock file update:
git add flake.lock
git commit -m "flake: update inputs"
nixpkgs vs a specific input by updating selectively--show-trace to get full error contextgit checkout flake.lock then rebuildnix flake metadata
This shows all inputs and their current resolved revisions.