dynix/tests/harmonia/configuration.nix

31 lines
618 B
Nix
Raw Normal View History

2026-02-11 13:19:59 +01:00
{ lib, modulesPath, ... }:
2026-02-10 14:59:44 +01:00
let
moduleList = import "${modulesPath}/module-list.nix";
dynixFromSearchPath = let
res = builtins.tryEval <dynix>;
in lib.optional res.success res.value;
in
{
imports = [
2026-02-11 13:19:59 +01:00
#"${modulesPath}/testing/test-instrumentation.nix"
#./hardware-configuration.nix
2026-02-10 14:59:44 +01:00
] ++ lib.concatLists [
2026-02-11 13:19:59 +01:00
#dynixFromSearchPath
2026-02-10 14:59:44 +01:00
moduleList
];
dynamicism.for.harmonia.enable = true;
services.harmonia = {
enable = true;
settings = {
# Default.
workers = 4;
# Default.
max_connection_rate = 256;
};
};
networking.hostName = "harmonia-machine";
}