2022-11-02 23:37:01 +01:00
|
|
|
{ lib, ... }:
|
|
|
|
# our custom options
|
|
|
|
{
|
|
|
|
options.deployment = with lib; {
|
|
|
|
vcpu = mkOption {
|
|
|
|
type = types.int;
|
2022-11-24 00:03:30 +01:00
|
|
|
default = 4;
|
2022-11-02 23:37:01 +01:00
|
|
|
};
|
|
|
|
mem = mkOption {
|
|
|
|
type = types.int;
|
|
|
|
default = 512;
|
|
|
|
};
|
2022-11-07 21:15:37 +01:00
|
|
|
networks = mkOption {
|
|
|
|
type = with types; listOf str;
|
|
|
|
default = [ "serv" ];
|
|
|
|
};
|
2022-11-02 23:37:01 +01:00
|
|
|
persistedShares = mkOption {
|
|
|
|
type = with types; listOf str;
|
|
|
|
default = [ "/etc" "/home" "/var" ];
|
|
|
|
};
|
2022-11-25 23:04:27 +01:00
|
|
|
storage = mkOption {
|
|
|
|
type = types.enum [ "fast" "big" ];
|
|
|
|
default = "fast";
|
2022-11-26 00:34:41 +01:00
|
|
|
description = ''
|
|
|
|
Which glusterfs volume to use for persistedShares
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
needForSpeed = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = false;
|
|
|
|
description = ''
|
|
|
|
Prefer deployment on Nomad clients with a higher c3d2.cpuSpeed
|
|
|
|
'';
|
2022-11-25 23:04:27 +01:00
|
|
|
};
|
2022-11-02 23:37:01 +01:00
|
|
|
};
|
|
|
|
}
|