Benjamin Bädorf
f291e88d86
All checks were successful
continuous-integration/drone/push Build is passing
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;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|