nix-config/modules/cluster/deployment-options.nix

27 lines
540 B
Nix

{ lib, ... }:
# our custom options
{
options.deployment = with lib; {
vcpu = mkOption {
type = types.int;
default = 4;
};
mem = mkOption {
type = types.int;
default = 512;
};
networks = mkOption {
type = with types; listOf str;
default = [ "serv" ];
};
persistedShares = mkOption {
type = with types; listOf str;
default = [ "/etc" "/home" "/var" ];
};
storage = mkOption {
type = types.enum [ "fast" "big" ];
default = "fast";
};
};
}