This commit is contained in:
2026-02-23 20:29:18 +02:00
parent 25310fe8b9
commit 0e6c578860
5 changed files with 547 additions and 366 deletions

835
flake.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -75,15 +75,14 @@
inherit inputs; inherit inputs;
}; };
modules = [ modules = [
# inputs.home-manager.nixosModules.default inputs.home-manager.nixosModules.default
inputs.catppuccin.nixosModules.catppuccin inputs.catppuccin.nixosModules.catppuccin
inputs.tangled.nixosModules.knot inputs.tangled.nixosModules.knot
inputs.wafrn.nixosModules.default inputs.wafrn.nixosModules.default
inputs.tangled.nixosModules.spindle inputs.tangled.nixosModules.spindle
inputs.vscode-server.nixosModules.default inputs.vscode-server.nixosModules.default
# inputs.openclaw.nixosModules.openclaw-gateway inputs.openclaw.nixosModules.openclaw-gateway
# inputs.openclaw.homeManagerModules.openclaw
inputs.chaotic.nixosModules.nyx-cache inputs.chaotic.nixosModules.nyx-cache
inputs.chaotic.nixosModules.nyx-overlay inputs.chaotic.nixosModules.nyx-overlay

View File

@@ -14,7 +14,7 @@
../../modules/force.nix ../../modules/force.nix
./modules/gitea.nix ./modules/gitea.nix
./modules/vaultwarden.nix ./modules/vaultwarden.nix
# ./slop/openclaw.nix ./slop/openclaw.nix
]; ];
# gcc. shit breaks. wtf # gcc. shit breaks. wtf

Submodule hosts/server/slop/nix-openclaw added at fbef208719

View File

@@ -1,46 +1,50 @@
{ {
config, inputs,
pkgs, pkgs,
lib,
... ...
}: }:
{ {
home-manager.sharedModules = [
inputs.openclaw.homeManagerModules.openclaw
];
users.openclaw = { home-manager.users.openclaw = {
home.username = "openclaw";
home.homeDirectory = "/home/openclaw";
home.stateVersion = "24.11";
};
users.users.openclaw = {
isNormalUser = true; isNormalUser = true;
home = "/openclaw"; home = "/home/openclaw";
createHome = true;
description = "OpenClaw Agent"; description = "OpenClaw Agent";
group = "openclaw";
extraGroups = [ "docker" ]; extraGroups = [ "docker" ];
group = "agents"; shell = pkgs.bashInteractive;
}; packages = [
inputs.openclaw.packages.${pkgs.system}.openclaw-gateway
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"; }
]; ];
}; };
};
users.groups.openclaw = { };
systemd.services.openclaw-start-usermode = {
enable = true;
description = "Start OpenClaw";
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
serviceConfig = {
Type = "forking";
User = "openclaw";
LimitNOFILE = "infinity";
LimitNPROC = "infinity";
Environment = "PWD=/home/openclaw";
LimitCORE = "infinity";
Restart = "on-failure";
ExecStart = "${inputs.openclaw.packages.${pkgs.system}.openclaw-gateway}/bin/openclaw gateway";
};
};
} }