feat: hermes frame mog openclaw
Some checks are pending
quality / changes (push) Waiting to run
quality / Flake Check (push) Blocked by required conditions
quality / Nix Format Check (push) Blocked by required conditions
quality / Deploy netty (push) Blocked by required conditions

This commit is contained in:
Harivansh Rathi 2026-04-09 03:16:41 +00:00
parent c882f44a0b
commit bad6fc6733
15 changed files with 279 additions and 222 deletions

View file

@ -21,7 +21,7 @@
./mise.nix
./migration.nix
./nvim.nix
./openclaw.nix
./hermes.nix
./prompt.nix
./skills.nix
./scripts.nix

12
home/hermes.nix Normal file
View file

@ -0,0 +1,12 @@
{
inputs,
pkgs,
hostConfig,
lib,
...
}:
lib.mkIf hostConfig.isLinux {
home.packages = [
inputs.hermes-agent.packages.${pkgs.stdenv.hostPlatform.system}.default
];
}

View file

@ -1,37 +0,0 @@
{
config,
inputs,
pkgs,
hostConfig,
lib,
...
}:
let
openClawVersion = "2026.4.5";
npmDir = "${config.xdg.dataHome}/npm";
in
lib.mkIf hostConfig.isLinux {
home.packages = [
inputs.openClaw.packages.${pkgs.stdenv.hostPlatform.system}.default
];
home.activation.installOpenClaw = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
export PATH="${lib.makeBinPath [ pkgs.nodejs_22 pkgs.coreutils ]}:$PATH"
export NPM_CONFIG_USERCONFIG="${config.xdg.configHome}/npm/npmrc"
export XDG_DATA_HOME="${config.xdg.dataHome}"
export XDG_CACHE_HOME="${config.xdg.cacheHome}"
OPENCLAW_DIR="${npmDir}/lib/node_modules/openclaw"
INSTALLED=$(npm ls -g openclaw --depth=0 --json 2>/dev/null | ${pkgs.jq}/bin/jq -r '.dependencies.openclaw.version // empty')
HEALTHY=true
[ "$INSTALLED" != "${openClawVersion}" ] && HEALTHY=false
[ ! -d "$OPENCLAW_DIR/node_modules/grammy" ] && HEALTHY=false
if [ "$HEALTHY" = false ]; then
npm install -g "openclaw@${openClawVersion}" --force 2>/dev/null || true
fi
'';
home.file.".openclaw/workspace/SOUL.md".source = ../config/openclaw/SOUL.md;
home.file.".openclaw/workspace/TOOLS.md".source = ../config/openclaw/TOOLS.md;
home.file.".openclaw/workspace/HEARTBEAT.md".source = ../config/openclaw/HEARTBEAT.md;
}