Disable openclaw module
This commit is contained in:
parent
3b750b8010
commit
6987ad3f49
4 changed files with 76 additions and 43 deletions
|
|
@ -361,36 +361,6 @@
|
|||
".config/wofi/menu.css".source = ../configs/wofi/menu.css;
|
||||
};
|
||||
|
||||
programs.openclaw = {
|
||||
enable = true;
|
||||
documents = ../openclaw/documents;
|
||||
instances.default = {
|
||||
enable = true;
|
||||
config = {
|
||||
gateway.mode = "local";
|
||||
gateway.auth.mode = "token";
|
||||
gateway.auth.token = {
|
||||
source = "env";
|
||||
provider = "default";
|
||||
id = "OPENCLAW_GATEWAY_TOKEN";
|
||||
};
|
||||
gateway.remote.token = {
|
||||
source = "env";
|
||||
provider = "default";
|
||||
id = "OPENCLAW_GATEWAY_TOKEN";
|
||||
};
|
||||
|
||||
agents.defaults.model.primary = "ollama/gemma4:e4b";
|
||||
models.providers.ollama = {
|
||||
baseUrl = "http://127.0.0.1:11434";
|
||||
api = "ollama";
|
||||
apiKey = "ollama-local";
|
||||
models = [ ];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
home.activation.openclawGatewayEnv = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
||||
set -euo pipefail
|
||||
token_file="/run/agenix/openclaw_gateway_token"
|
||||
|
|
@ -411,13 +381,5 @@
|
|||
};
|
||||
};
|
||||
|
||||
systemd.user.services.openclaw-gateway = {
|
||||
Service.EnvironmentFile =
|
||||
"${config.home.homeDirectory}/.config/openclaw/gateway.env";
|
||||
Install.WantedBy = [ "default.target" ];
|
||||
};
|
||||
|
||||
home.file.".openclaw/openclaw.json".force = true;
|
||||
|
||||
programs.home-manager.enable = true;
|
||||
}
|
||||
|
|
|
|||
33
home/openclaw.nix
Normal file
33
home/openclaw.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
programs.openclaw = {
|
||||
enable = true;
|
||||
documents = ../openclaw/documents;
|
||||
instances.default = {
|
||||
enable = true;
|
||||
config = {
|
||||
gateway.mode = "local";
|
||||
gateway.auth.mode = "token";
|
||||
gateway.auth.token = {
|
||||
source = "env";
|
||||
provider = "default";
|
||||
id = "OPENCLAW_GATEWAY_TOKEN";
|
||||
};
|
||||
gateway.remote.token = {
|
||||
source = "env";
|
||||
provider = "default";
|
||||
id = "OPENCLAW_GATEWAY_TOKEN";
|
||||
};
|
||||
|
||||
agents.defaults.model.primary = "ollama/gemma4:e4b";
|
||||
models.providers.ollama = {
|
||||
baseUrl = "http://127.0.0.1:11434";
|
||||
api = "ollama";
|
||||
apiKey = "ollama-local";
|
||||
models = [ ];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue