From b17b2ab9774498ff6073c1707618697a4c18d541 Mon Sep 17 00:00:00 2001 From: servius Date: Wed, 11 Mar 2026 12:20:20 +0530 Subject: [PATCH] feat: Add openclaw for shiro --- darwin/shiro/services/default.nix | 1 + darwin/shiro/services/openclaw.nix | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 darwin/shiro/services/openclaw.nix diff --git a/darwin/shiro/services/default.nix b/darwin/shiro/services/default.nix index abf6a3ce..64bdc0b2 100644 --- a/darwin/shiro/services/default.nix +++ b/darwin/shiro/services/default.nix @@ -13,6 +13,7 @@ ./sops.nix ./sunshine.nix ./tailscale.nix + ./openclaw.nix ./yabai.nix ]; } diff --git a/darwin/shiro/services/openclaw.nix b/darwin/shiro/services/openclaw.nix new file mode 100644 index 00000000..5d332d46 --- /dev/null +++ b/darwin/shiro/services/openclaw.nix @@ -0,0 +1,28 @@ +{ + pkgs, + lib, + config, + ... +}: { + environment.systemPackages = with pkgs; [ + ollama + openclaw + ]; + launchd.agents.openclaw = { + enable = true; + config = { + Label = "com.openclaw"; + ProgramArguments = [ + "${lib.getExe pkgs.ollama}" + "launch" + "openclaw" + "--model" + "qwen3.5:9b" + ]; + RunAtLoad = true; + KeepAlive = false; + StandardOutPath = "${config.home.homeDirectory}/Library/Logs/openclaw.log"; + StandardErrorPath = "${config.home.homeDirectory}/Library/Logs/openclaw.error.log"; + }; + }; +}