forked from pub-solar/os
43 lines
1,020 B
Nix
43 lines
1,020 B
Nix
|
{
|
||
|
lib,
|
||
|
config,
|
||
|
pkgs,
|
||
|
...
|
||
|
}:
|
||
|
with lib; let
|
||
|
cfg = config.pub-solar;
|
||
|
in {
|
||
|
options.pub-solar = {
|
||
|
infra-node = {
|
||
|
mailing = {
|
||
|
enabled = mkEnableOption "Whether to enable mailing for services on the host";
|
||
|
type = mkOption {
|
||
|
description = "Mail server type";
|
||
|
type = types.nullOr types.str;
|
||
|
default = "smtp";
|
||
|
};
|
||
|
host = mkOption {
|
||
|
description = "Mailing server host";
|
||
|
type = types.nullOr types.str;
|
||
|
default = null;
|
||
|
};
|
||
|
from = mkOption {
|
||
|
description = "Mailing server from";
|
||
|
type = types.nullOr types.str;
|
||
|
default = null;
|
||
|
};
|
||
|
user = mkOption {
|
||
|
description = "Mailing server user";
|
||
|
type = types.listOf types.str;
|
||
|
default = [];
|
||
|
};
|
||
|
passwordFile = mkOption {
|
||
|
description = "Mailing server passwordFile";
|
||
|
type = types.nullOr types.str;
|
||
|
default = null;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|