Added Thingvellir nomad volumes
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user