works maybe
This commit is contained in:
46
hosts/server/slop/openclaw.nix
Normal file
46
hosts/server/slop/openclaw.nix
Normal file
@@ -0,0 +1,46 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
|
||||
users.openclaw = {
|
||||
isNormalUser = true;
|
||||
home = "/openclaw";
|
||||
description = "OpenClaw Agent";
|
||||
extraGroups = [ "docker" ];
|
||||
group = "agents";
|
||||
};
|
||||
|
||||
home-manager.users.openclaw =
|
||||
{
|
||||
pkgs,
|
||||
}:
|
||||
{
|
||||
programs.openclaw = {
|
||||
enable = true;
|
||||
config = {
|
||||
gateway = {
|
||||
mode = "local";
|
||||
auth = {
|
||||
token = "<gatewayToken>"; # or set OPENCLAW_GATEWAY_TOKEN
|
||||
};
|
||||
};
|
||||
|
||||
channels.telegram = {
|
||||
tokenFile = "/run/agenix/telegram-bot-token"; # any file path works
|
||||
allowFrom = [ 12345678 ]; # your Telegram user ID
|
||||
};
|
||||
};
|
||||
|
||||
# Built-ins (tools + skills) shipped via nix-steipete-tools.
|
||||
plugins = [
|
||||
{ source = "github:openclaw/nix-steipete-tools?dir=tools/summarize"; }
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user