2022-11-02 23:37:01 +01:00
|
|
|
{ lib, ... }:
|
|
|
|
# our custom options
|
|
|
|
{
|
|
|
|
options.deployment = with lib; {
|
|
|
|
vcpu = mkOption {
|
|
|
|
type = types.int;
|
|
|
|
default = 2;
|
|
|
|
};
|
|
|
|
mem = mkOption {
|
|
|
|
type = types.int;
|
|
|
|
default = 512;
|
|
|
|
};
|
2022-11-06 14:58:16 +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" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|