This commit is contained in:
commit
30ce0dafc2
195 changed files with 8902 additions and 0 deletions
6
users/rus07tam/modules/openclaw/default.nix
Normal file
6
users/rus07tam/modules/openclaw/default.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./secrets.nix
|
||||
./service.nix
|
||||
];
|
||||
}
|
||||
6
users/rus07tam/modules/openclaw/secrets.nix
Normal file
6
users/rus07tam/modules/openclaw/secrets.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
sops.secrets = {
|
||||
"rus07tam/openclaw/gatewayToken" = { };
|
||||
"rus07tam/openclaw/telegramToken" = { };
|
||||
};
|
||||
}
|
||||
37
users/rus07tam/modules/openclaw/service.nix
Normal file
37
users/rus07tam/modules/openclaw/service.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{ sec, inputs, ... }:
|
||||
{
|
||||
imports = [
|
||||
inputs.nix-openclaw.homeManagerModules.openclaw
|
||||
];
|
||||
|
||||
programs.openclaw = {
|
||||
enable = true;
|
||||
installApp = false;
|
||||
|
||||
bundledPlugins = {
|
||||
summarize.enable = true;
|
||||
};
|
||||
|
||||
instances.default = {
|
||||
enable = true;
|
||||
systemd.enable = true;
|
||||
|
||||
config = {
|
||||
gateway = {
|
||||
mode = "local";
|
||||
auth.token = sec."rus07tam/openclaw/gatewayToken".value;
|
||||
};
|
||||
|
||||
channels.telegram = {
|
||||
tokenFile = sec."rus07tam/openclaw/telegramToken".path;
|
||||
allowFrom = [ 6146757977 ];
|
||||
groups = {
|
||||
"*" = {
|
||||
requireMention = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue