update beszel defaults and expose filesystems config

This commit is contained in:
RingOfStorms (Joshua Bell) 2025-12-29 15:50:23 -06:00
parent 4c1dddfdfd
commit 4ce99393b6

View file

@ -48,6 +48,11 @@
description = "The hub url"; description = "The hub url";
default = "http://100.64.0.13:8090"; default = "http://100.64.0.13:8090";
}; };
extraFilesystems = lib.mkOption {
type = lib.types.nullOr lib.types.str;
description = "The EXTRA_FILESYSTEMS variable value";
default = null;
};
}; };
config = { config = {
services.beszel.agent = { services.beszel.agent = {
@ -59,6 +64,9 @@
HUB_URL = config.beszelAgent.hub; HUB_URL = config.beszelAgent.hub;
TOKEN = config.beszelAgent.token; TOKEN = config.beszelAgent.token;
KEY = config.beszelAgent.key; KEY = config.beszelAgent.key;
EXTRA_FILESYSTEMS = lib.mkIf (
config.beszelAgent.extraFilesystems != null
) config.beszelAgent.extraFilesystems;
}; };
}; };
}; };