بنقرة واحدة
building
Build and evaluate NixOS and Home-Manager configurations
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Build and evaluate NixOS and Home-Manager configurations
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
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.
استنادا إلى تصنيف SOC المهني
| name | building |
| description | Build and evaluate NixOS and Home-Manager configurations |
| Command | Purpose |
|---|---|
nix build .#nixosConfigurations.<host>.config.system.build.toplevel | Build host NixOS system |
nix build .#homeConfigurations.<user>@<host>.activationPackage | Build Home-Manager activation |
nix fmt | Format code and check syntax |
nix flake check | Evaluate all configs and run linters |
nix flake show | Show available outputs |
nix develop | Open dev shell |
nix develop --command true | Check devShell can open |
Repo uses devenv for devShells and checks. You must pass devenv-root override for nix flake check and nix develop:
nix flake check --override-input devenv-root "file+file://$PWD/.devenv/root"
nix develop --override-input devenv-root "file+file://$PWD/.devenv/root"
# Build nixdev server
nix build .#nixosConfigurations.nixdev.config.system.build.toplevel
# Build nixmi desktop
nix build .#nixosConfigurations.nixmi.config.system.build.toplevel
# Build racci config on nixmi
nix build .#homeConfigurations."racci@nixmi".activationPackage
# Check config evaluates
nix eval .#nixosConfigurations.nixdev.config.system.build.toplevel --apply 'x: "ok"'
# Get specific option value
nix eval .#nixosConfigurations.nixdev.config.networking.hostName
# Format changed file
nix fmt path/to/file.nix
# Format multiple files
nix fmt modules/nixos/services/*.nix
If build fails:
nix log <drv> to see build logs--show-trace for eval errors: nix build .#... --show-trace