在 Manus 中运行任何 Skill
一键导入
一键导入
一键在 Manus 中运行任何 Skill
开始使用nix-service
星标132
分支10
更新时间2026年2月8日 10:42
Manage nix-managed launchd and systemd services
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
Manage nix-managed launchd and systemd services
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Deep debugging of Nix expressions, evaluation, and derivations
Debug and evaluate Nix flake expressions
Create and structure Nix modules for darwin, NixOS, or home-manager
Nix flakes, nix-darwin, NixOS, and home-manager development assistance
| name | nix-service |
| description | Manage nix-managed launchd and systemd services |
| allowed-tools | ["Bash","Read"] |
# List nix-managed services
launchctl list | grep -E "org.nixos|nix"
# System daemons
ls /Library/LaunchDaemons/org.nixos.*.plist
# User agents
ls ~/Library/LaunchAgents/org.nixos.*.plist
# Domain format: system/<label> or gui/<uid>/<label>
DOMAIN="system/org.nixos.<name>"
DOMAIN="gui/$(id -u)/org.nixos.<name>"
# Status
launchctl print $DOMAIN
# Start/restart
launchctl kickstart $DOMAIN
launchctl kickstart -k $DOMAIN # kill first
# Stop (graceful)
launchctl kill SIGTERM $DOMAIN
# Stop (force unload - careful!)
sudo launchctl bootout $DOMAIN
cat /Library/LaunchDaemons/org.nixos.<name>.plist
plutil -p /Library/LaunchDaemons/org.nixos.<name>.plist
# Recent logs for service
log show --predicate 'subsystem == "org.nixos.<name>"' --last 5m
# Stream logs
log stream --predicate 'process == "<process-name>"'
# System services
systemctl list-units --type=service | grep nix
# User services
systemctl --user list-units --type=service
# Status
systemctl [--user] status <service>
# Control
systemctl [--user] start <service>
systemctl [--user] stop <service>
systemctl [--user] restart <service>
# Enable/disable at boot
systemctl [--user] enable <service>
systemctl [--user] disable <service>
journalctl [-u <service>] [-f] [--user]
launchd.user.agents.<name>.serviceConfig = {
ProcessType = "Background";
Nice = 5;
LowPriorityIO = true;
};
launchd.daemons.<name>.serviceConfig = {
RunAtLoad = lib.mkForce false;
KeepAlive = lib.mkForce false;
};
Use lib.mkForce when the service module already sets values.