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 = {
isNormalUser = true; home.username = "openclaw";
home = "/openclaw"; home.homeDirectory = "/home/openclaw";
description = "OpenClaw Agent"; home.stateVersion = "24.11";
extraGroups = [ "docker" ];
group = "agents";
}; };
home-manager.users.openclaw = users.users.openclaw = {
{ isNormalUser = true;
pkgs, home = "/home/openclaw";
}: createHome = true;
{ description = "OpenClaw Agent";
programs.openclaw = { group = "openclaw";
enable = true; extraGroups = [ "docker" ];
config = { shell = pkgs.bashInteractive;
gateway = { packages = [
mode = "local"; inputs.openclaw.packages.${pkgs.system}.openclaw-gateway
auth = { ];
token = "<gatewayToken>"; # or set OPENCLAW_GATEWAY_TOKEN };
};
};
channels.telegram = { users.groups.openclaw = { };
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. systemd.services.openclaw-start-usermode = {
plugins = [ enable = true;
{ source = "github:openclaw/nix-steipete-tools?dir=tools/summarize"; } 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";
}; };
};
} }