nbot: bump to a6451cb and set the new drive and cluster flags

nbot 8daeca5 -> a6451cb (revCount 492 -> 652). The two config shape
changes in that range are allow_subdir on a drive and master_fingerprint
as a list; summaries.enabled is now ignored because summaries are always
on. The host module gained drives and stateDir, which feed
RequiresMountsFor= so the unit waits for its disks.

The nbot input stays on git+ssh: the repo is private, so git+https
cannot fetch it without credentials.
This commit is contained in:
ari authored and Hermenix committed 2026-11-07 15:02:56 +00:00
1 parent 91d6511f01
commit eb94f5a034
3 files changed
+20 -8

No files matched your search

+8 -2
View File
@@ -17,7 +17,8 @@ let
max_container = { memory_mb = 51200; cpus = 6; };
host_reserve = { memory_mb = 8192; cpus = 2.0; };
storage = { min = "2G"; max = "10G"; limit = "50G"; };
drives = [{ path = homes; reserve = "200G"; }];
# allow_subdir: the folder is a plain folder on the root disk.
drives = [{ path = homes; reserve = "200G"; allow_subdir = true; }];
# Worker of the master on fwdesk. Slack tokens and goose settings come
# from the master. Trusts the first certificate it sees (saved in
@@ -25,7 +26,9 @@ let
cluster = {
name = "hl-fws1";
master = "wss://fwdesk.lab.internal:7946";
master_fingerprint = "ce08c6b0f3aec855cc8b936d81449c1a34074d181089b26acbdddacfca60af1d";
# A list, so the master's certificate can be rotated with no time where
# a slave refuses the master: add the new fingerprint, then drop the old.
master_fingerprint = [ "ce08c6b0f3aec855cc8b936d81449c1a34074d181089b26acbdddacfca60af1d" ];
};
};
in
@@ -40,6 +43,9 @@ in
services.nbot = {
enable = true;
mode = "slave";
# The unit waits for these mounts before it starts.
drives = [ homes ];
stateDir = "/var/lib/nbot";
configFile = (pkgs.formats.toml { }).generate "nbot.toml" settings;
environmentFile = config.age.secrets.nbot-cluster.path;
};