bye bye openclaw

This commit is contained in:
Polen 2026-03-09 08:44:44 -04:00
parent 36c73a41ff
commit 4b13eb5832
8 changed files with 18 additions and 283 deletions

View file

@ -65,7 +65,7 @@ in {
host = "0.0.0.0";
syncModels = true;
loadModels =
[ "qwen3:4b" "lfm2.5-thinking:1.2b" "ministral-3:8b" "ministral-3:3b" ];
[ "qwen3-embedding:8b" ];
};
};
@ -162,7 +162,6 @@ in {
9000 # mealie
8989 # sonarr
10222 # taskchampion-sync-server
18789 # openclaw
];
firewall.allowedUDPPorts = [
5353 # mDNS
@ -182,35 +181,11 @@ in {
};
users.groups.polen = { };
# Luna user for OpenClaw AI assistant
users.users.luna = {
isSystemUser = true;
group = "luna";
home = "/var/lib/luna";
createHome = true;
shell = pkgs.bash;
};
users.groups.luna = { };
# Enable lingering for luna's systemd user services (runs at boot without login)
system.activationScripts.enableLingeringLuna = ''
${pkgs.systemd}/bin/loginctl enable-linger luna || true
'';
# SOPS secrets for Luna (OpenClaw)
# SOPS secrets
sops = {
defaultSopsFile = ../../secrets/secrets.yaml;
age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
secrets = {
luna_telegram_token = {
owner = "luna";
group = "luna";
};
luna_gateway_token = {
owner = "luna";
group = "luna";
};
};
secrets = { };
};
environment.systemPackages = with pkgs; [

View file

@ -1,3 +0,0 @@
# Luna Agent
Luna is a homelab assistant.

View file

@ -1 +0,0 @@
# Soul

View file

@ -1,3 +0,0 @@
# Tools
Luna can help answer questions about the homelab infrastructure.

View file

@ -1,113 +0,0 @@
{ inputs, config, pkgs, ... }:
{
imports = [ inputs.nix-openclaw.homeManagerModules.openclaw ];
home.username = "luna";
home.homeDirectory = "/var/lib/luna";
home.stateVersion = "25.05";
home.packages = with pkgs; [ xmlstarlet ];
programs.openclaw = {
enable = true;
config = {
models = {
providers = {
ollama = {
baseUrl = "http://127.0.0.1:11434/v1";
apiKey = "ollama-local";
api = "openai-completions";
models = [ ];
};
};
};
agents = {
defaults = {
model = { primary = "github-copilot/gpt-5-mini"; };
workspace = "/var/lib/luna/.openclaw/workspace";
maxConcurrent = 4;
subagents = { maxConcurrent = 8; };
models = { "github-copilot/gpt-5-mini" = { }; };
};
};
commands = {
native = "auto";
nativeSkills = "auto";
};
channels = {
telegram = {
dmPolicy = "pairing";
tokenFile = "/run/secrets/luna_telegram_token";
groups = { "*" = { requireMention = true; }; };
allowFrom = [ 1268580775 ];
groupPolicy = "allowlist";
streamMode = "partial";
};
};
gateway = {
mode = "local";
auth = {
token =
"14db7eaede5f363bce5f5efd23baea45fd8c7984fd3d9234d9b98e1d52c88db7";
mode = "token";
};
port = 18789;
bind = "loopback";
tailscale = {
mode = "off";
resetOnExit = false;
};
};
plugins = { entries = { telegram = { enabled = true; }; }; };
messages = { ackReactionScope = "group-mentions"; };
auth = {
profiles = {
"github-copilot:github" = {
provider = "github-copilot";
mode = "token";
};
};
};
hooks = {
internal = {
enabled = true;
entries = {
"boot-md" = { enabled = true; };
"command-logger" = { enabled = true; };
"session-memory" = { enabled = true; };
};
};
};
wizard = {
lastRunAt = "2026-02-10T18:36:29.457Z";
lastRunVersion = "2026.2.6-3";
lastRunCommand = "onboard";
lastRunMode = "local";
};
meta = {
lastTouchedVersion = "2026.2.6-3";
lastTouchedAt = "2026-02-10T18:36:29.472Z";
};
};
# Plugins useful for homelab Q&A
bundledPlugins = {
summarize.enable = true; # Summarize docs/web pages
oracle.enable = false; # Web search
};
};
programs.home-manager.enable = true;
}

View file

@ -116,6 +116,12 @@
withUWSM = true;
};
programs.weylus = {
enable = true;
users = [ "polen" ];
openFirewall= true;
};
services.gvfs.enable = true;
# to make pass work