os/modules/infra-node/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
1,020 B
Nix
Raw Normal View History

{
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;
};
};
};
};
}