بنقرة واحدة
project-structure
Navigate nix-config repository layout and find files
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Navigate nix-config repository layout and find files
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Create and modify NixOS and Home-Manager modules
Hardens systemd services against security issues using sandboxing, capability restriction, and syscall filtering. Use when creating or modifying systemd services, writing NixOS modules with systemd.services, reviewing service security, or whenever a serviceConfig block is involved. Ensures services follow defense-in-depth principles with minimal privilege.
Write Nix code using repo conventions
Write and review Conventional Commits commit messages (v1.0.0) for semantic versioning and changelogs. Use when drafting git commit messages, PR titles, release notes, or enforcing conventional commit format like `type(scope): subject`, `BREAKING CHANGE`, footers, and `revert`.
Manages version control with Jujutsu (jj), including rebasing, conflict resolution, and Git interop. Use when tracking changes, navigating history, squashing/splitting commits, or pushing to Git remotes.
Manage background jobs, capture command output, and handle session multiplexing. Use when running long commands, capturing output from detached processes, or managing concurrent tasks in headless environments.
| name | project-structure |
| description | Navigate nix-config repository layout and find files |
flake.nix # Top-level flake definitions
flake/
dev/ # Dev shell, CI scripts, formatting
ci/ # CI-specific flake and scripts
home-manager/ # Home-Manager flake module
nixos/ # NixOS flake module
modules/ # Reusable module fragments
home-manager/ # Home-Manager modules
nixos/ # NixOS modules
lib/ # Shared Nix functions and helpers
builders/ # System and home builders (`mkSystem`, `mkHome`)
overlays/ # Nixpkgs overlays
pkgs/ # Custom packages and package sets
hosts/ # Per-machine NixOS configs
shared/
global/ # Applied to all hosts
optional/ # Optional features like gaming or containers
desktop/ # Desktop machines
shared/ # Shared across desktops
<machine>/ # Machine-specific config
laptop/ # Laptop machines
shared/
server/ # Server machines
shared/
<machine>/
home/ # User-specific Home-Manager configs
shared/ # Shared across users
global/ # Applied to all users
applications/ # App configs
desktop/ # Desktop environment configs
features/ # Feature modules like CLI
<user>/ # User-specific configs
<machine>.nix # Machine-specific overrides
os-config.nix # OS config for all machines
hm-config.nix # Home-Manager entry point
docs/ # Project docs
| File | Purpose |
|---|---|
flake.nix | Flake inputs and outputs |
flake.lock | Locked input versions |
.sops.yaml | SOPS encryption rules |
state.version | NixOS state version |
lib/builders/mkSystem.nix | Host system builder |
lib/builders/home/mkHome.nix | Home config builder |
modules/nixos/default.nix | NixOS module exports |
modules/home-manager/default.nix | Home-Manager module exports |
pkgs/default.nix | Custom package registry |
overlays/default.nix | Overlay definitions |
hosts/<type>/<hostname>/default.nixhome/<username>/hm-config.nixhome/<username>/<hostname>.nixmodules/nixos/<category>/<name>.nixmodules/home-manager/<category>/<name>.nixpkgs/<package-name>/default.nixhosts/<type>/<hostname>/secrets.yaml or home/<user>/secrets.yaml