Robotnix v1

This commit is contained in:
ari committed 2026-10-23 15:26:04 -04:00
1 parent 0cf504ad27
commit eb6380ddfe
14 files changed
+1642 -1

No files matched your search

+1
View File
@@ -8,5 +8,6 @@
./steam.nix
./buildbot.nix
./linux-tracker.nix
./robotnix.nix
];
}
+39
View File
@@ -0,0 +1,39 @@
{ config, ... }:
let
apps = config.skyg.internalNetworkingMap.apps;
ports = {
ollama = 11434;
ds4 = 8000;
tracker = 1984;
};
in
{
skyg.nixos.server.robotnix = {
enable = true;
externalInterface = "enp191s0";
# Every robot gets this tier. Same holes as the Hermes VM.
access.shared = {
internet = "all";
hostAccess = [
{ port = ports.ollama; }
{ port = ports.tracker; }
];
lanAccess = [ ];
};
robots.genix = {
id = 1;
address = apps.genix.ip;
cpus = { min = 1; max = 4; };
memory = { min = "8G"; max = "16G"; };
disk = { rootSize = "100G"; homeSize = "60G"; };
seed.configuration = ./robotnix/genix.nix;
access = { };
git = {
enable = true;
remoteUrl = "gitea@gitea.app.internal:Hermenix/genix.git";
};
};
};
}
@@ -0,0 +1,24 @@
# 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
];
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 14d";
};
}