split bots

This commit is contained in:
ari committed 2026-10-26 14:36:03 -04:00
1 parent 9217e61675
commit bfdcd45746
20 files changed
+686 -152

No files matched your search

+1 -4
View File
@@ -2,8 +2,5 @@
{
services.tailscale.enable = true;
systemd.network.wait-online.ignoredInterfaces = [
"hermes-br"
"vm-hermes"
];
systemd.network.wait-online.enable = false;
}
+36 -11
View File
@@ -1,6 +1,8 @@
{ config, ... }:
{ config, lib, skyg-secrets, ... }:
let
apps = config.skyg.internalNetworkingMap.apps;
robotSecrets = [ "robots-shared" "robots-sibli" ];
secret = name: config.age.secrets.${name}.path;
ports = {
ollama = 11434;
ds4 = 8000;
@@ -8,6 +10,12 @@ let
};
in
{
age.secrets = lib.genAttrs robotSecrets (name: {
file = skyg-secrets.${name};
owner = "root";
mode = "0400";
});
skyg.nixos.server.robotnix = {
enable = true;
externalInterface = "enp191s0";
@@ -17,23 +25,40 @@ in
internet = "all";
hostAccess = [
{ port = ports.ollama; }
{ port = ports.tracker; }
];
lanAccess = [ ];
};
robots.genix = {
id = 1;
address = apps.genix.ip;
# A Hermes agent in every robot.
hermes = {
enable = true;
environmentFiles = [ (secret "robots-shared") ];
};
robots.sibli = {
id = 2;
address = apps.sibli.ip;
cpus = { min = 1; max = 4; };
memory = { min = "8G"; max = "16G"; };
memory = { min = "2G"; max = "16G"; };
disk = { rootSize = "100G"; homeSize = "60G"; };
seed.configuration = ./robotnix/genix.nix;
access = { };
git = {
enable = true;
remoteUrl = "gitea@gitea.app.internal:Hermenix/genix.git";
seed.configuration = ./robotnix/sibli.nix;
hermes = {
name = "Siblix";
environmentFiles = [ (secret "robots-sibli") ];
settings.model = {
provider = "anthropic";
default = "claude-haiku-5-5";
};
};
allowDocker = true;
allowTun = true;
ephemeral = true;
persist = [
"/var/lib/tailscale"
"/var/lib/docker"
];
access = { };
git.enable = false;
};
};
}
@@ -1,28 +0,0 @@
# genix's starting NixOS config (a robotnix seed, not a host module).
#
# The host copies this into the robot's /etc/nixos on first install and on
# `robotnix reseed`. After that the robot owns it. Inside the robot:
# sudo nixos-rebuild switch --flake /etc/nixos
# Host-managed basics (network, ssh, user) live in /etc/nixos/robotnix.nix.
{ pkgs, ... }:
{
# The user has no password; ssh keys only.
security.sudo.wheelNeedsPassword = false;
environment.systemPackages = with pkgs; [
git
vim
curl
htop
claude-code
goose-cli
pi-coding-agent
devenv
];
nixpkgs.config.allowUnfree = true;
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 14d";
};
}
@@ -0,0 +1,33 @@
# sibli is ephemeral: root resets to this config on every start, so change
# things here (then rebuild the host), not inside the robot.
{ pkgs, ... }:
{
# The user has no password; ssh keys only.
security.sudo.wheelNeedsPassword = false;
environment.systemPackages = with pkgs; [
git
vim
curl
htop
claude-code
devenv
zellij
];
nixpkgs.config.allowUnfree = true;
# Docker + compose. Needs allowDocker = true on the host.
virtualisation.docker.enable = true;
users.users.ari.extraGroups = [ "docker" ];
# Own tailnet machine. Needs allowTun = true on the host.
# Log in once: sudo tailscale up (state is kept via persist on the host)
services.tailscale.enable = true;
services.tailscale.openFirewall = true;
networking.firewall.trustedInterfaces = [ "tailscale0" ];
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 14d";
};
}