Added Thingvellir nomad volumes

This commit is contained in:
marc committed 2024-02-16 20:41:05 +01:00
1 parent 87a4d79c71
commit 2e3dad1c1b
3 files changed
+46

No files matched your search

+12
View File
@@ -13,6 +13,12 @@ in
description = "Set to true if configured a server - otherwise a client is assumed";
};
host-config = lib.mkOption {
type = lib.types.nullOr lib.types.path;
default = null;
description = "Additional host-specific config file";
};
};
config = lib.mkIf cfg.enable {
# services.consul.enable = true;
@@ -45,6 +51,12 @@ in
target = "nomad.d/server.json";
source = ../../config/nomad.d/server.json;
};
} // lib.optionalAttrs cfg.host-config {
# Host-specific configuration
nomad-host-cfg = {
target = "nomad.d/host.json";
source = cfg.host-config;
};
};
age.secrets = {