Skip to content
Back to skills

Nix Conventions

ASecurity

Module layout rules for Nix machine definitions. Platform guards, store-resident scripts, home paths. Use when writing or reviewing Nix modules.

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 7, 2026
ai-agentsshell

Security analysis

A100/100

Scanned November 7, 2026

npx -y skills add samuel-stidham/smithy --skill nix-conventions --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Nix Conventions?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Nix Conventions
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/samuel-stidham-nix-conventions-smithy/badge)](https://www.skillsdirectory.com/skills/samuel-stidham-nix-conventions-smithy)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: nix-conventions
description: Module layout rules for Nix machine definitions. Platform guards, store-resident scripts, home paths. Use when writing or reviewing Nix modules.
user-invocable: false
---

# Nix conventions

Module layout rules for machine definitions.

- **Platform guards.** `lib.optionals pkgs.stdenv.isLinux` for
  package lists. `lib.mkIf pkgs.stdenv.isLinux` for file and service
  blocks.
- **Scripts live in the store.** `writeShellApplication` plus
  `readFile`, never a checkout path inside a systemd unit. A unit
  pointing into a checkout breaks the moment the checkout moves or
  the machine bootstraps fresh.
- **Home paths are bound once.** `config.home.homeDirectory` through
  one named binding, never a literal.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.