agents/skills/nix/SKILL.md
Guidelines when managing Nix configuration
npx skillsauth add nazozokc/dotfiles nixInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
# Standard module structure used in this repo
{ config, pkgs, ... }: {
programs.<name> = {
enable = true;
# options...
};
}
Always verify with home-manager switch --flake .#<host> after changes.
# 1. Add to home.packages or the appropriate programs.<name> block
# 2. Run:
home-manager switch --flake .#<host>
# 3. Verify the binary is available:
which <package>
with pkgs; at the top level — it pollutes scope and makes deps unclearpkgs.writeShellScriptBin for complex scripts — use a dedicated derivation insteadnix.conf or pass --accept-flake-config# 1. Run update (only if this command is defined in the flake)
nix run .#update
# 2. Stage changes
git add .
# 3. Commit (English only)
<type>: <summary>
# 4. Push to remote
git push
nix flake update
# nixpkgs overlay etc.
nix build .#<target>
# For home-manager (replace host with config name)
home-manager switch --flake .#<host>
development
Method and notes when performing web searches
development
Guidelines when working on TypeScript/JS projects
tools
Template and notes when creating or updating SKILL.md files under skills/
tools
When writing fish shell scripts, functions, abbreviations, or editing shell configuration