latest nbot
This commit is contained in:
1 parent
6db82ed10a
commit
be6e7492b3
4 files changed
+37
-6
No files matched your search
@@ -2,6 +2,7 @@
|
||||
let
|
||||
ports = { cluster = 7946; };
|
||||
homes = "/data/nbot";
|
||||
goCache = "/data/nbot-cache/go";
|
||||
secrets = [ "nbot-slack" "nbot-goose" "nbot-cluster" ];
|
||||
settings = {
|
||||
# The system each container boots (nbot's agent + gh); updated on every rebuild.
|
||||
@@ -15,6 +16,12 @@ let
|
||||
allow_indefinite = true;
|
||||
boot_timeout = "2m";
|
||||
|
||||
# Go caches shared by all containers on this node (see ABOUTME). Env vars are in agent_env.
|
||||
rw_binds = [
|
||||
"${goCache}/mod:/var/cache/go/mod:idmap"
|
||||
"${goCache}/build:/var/cache/go/build:idmap"
|
||||
];
|
||||
|
||||
summaries = {
|
||||
timeout = "10s";
|
||||
};
|
||||
@@ -29,6 +36,9 @@ let
|
||||
COMMAND_CODE_API_KEY = "$COMMAND_CODE_API_KEY";
|
||||
GH_TOKEN = "$GH_TOKEN";
|
||||
DIAGNIX_KEY = "$DIAGNIX_KEY"; # base64 private key for lab-ssh (diagnix)
|
||||
# Shared Go caches, mounted by rw_binds on each node.
|
||||
GOMODCACHE = "/var/cache/go/mod";
|
||||
GOCACHE = "/var/cache/go/build";
|
||||
};
|
||||
|
||||
model_providers = [
|
||||
@@ -132,5 +142,9 @@ in
|
||||
networking.networkmanager.unmanaged = [ "interface-name:ve-*" ];
|
||||
networking.dhcpcd.denyInterfaces = [ "ve-*" ];
|
||||
|
||||
systemd.tmpfiles.rules = [ "d ${homes} 0700 root root -" ];
|
||||
systemd.tmpfiles.rules = [
|
||||
"d ${homes} 0700 root root -"
|
||||
"d ${goCache}/mod 0700 root root -"
|
||||
"d ${goCache}/build 0700 root root -"
|
||||
];
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
{ config, pkgs, skyg-secrets, ... }:
|
||||
let
|
||||
homes = "/var/lib/nbot/homes";
|
||||
goCache = "/var/lib/nbot-cache/go";
|
||||
settings = {
|
||||
# The system each container boots (nbot's agent + gh); updated on every rebuild.
|
||||
system = "${config.skyg.nixos.server.services.nbot-agent.system}";
|
||||
@@ -13,6 +14,12 @@ let
|
||||
allow_indefinite = true;
|
||||
boot_timeout = "2m";
|
||||
|
||||
# Go caches shared by all containers on this node (see ABOUTME). Env vars come from the master.
|
||||
rw_binds = [
|
||||
"${goCache}/mod:/var/cache/go/mod:idmap"
|
||||
"${goCache}/build:/var/cache/go/build:idmap"
|
||||
];
|
||||
|
||||
container = { memory_mb = 4096; cpus = 1.0; };
|
||||
max_container = { memory_mb = 51200; cpus = 6; };
|
||||
host_reserve = { memory_mb = 8192; cpus = 2.0; };
|
||||
@@ -54,5 +61,9 @@ in
|
||||
# so wait-online would always time out.
|
||||
systemd.network.wait-online.enable = false;
|
||||
|
||||
systemd.tmpfiles.rules = [ "d ${homes} 0700 root root -" ];
|
||||
systemd.tmpfiles.rules = [
|
||||
"d ${homes} 0700 root root -"
|
||||
"d ${goCache}/mod 0700 root root -"
|
||||
"d ${goCache}/build 0700 root root -"
|
||||
];
|
||||
}
|
||||
Reference in new issue
Block a user