Files
stubbfelnix/module/news2kindle/recipient-options.nix
2018-04-01 00:02:01 +02:00

31 lines
717 B
Nix

{ config, lib }:
let
cfg = config.services.news2kindle;
in
with lib;
{
options = {
mailAddress = mkOption {
type = types.str;
default = null;
description = '' mail address of the recipient '';
example = "foo@bar.bla";
};
fromMail = mkOption {
example = "foo@bar.bla";
default = cfg.fromMail;
type = types.str;
description = ''
Adrees of the sender, please allow this mail in your kindle doc service
'';
};
cronJobs = mkOption {
type = types.attrsOf (types.submodule (import ./cronjob-options.nix { inherit config lib; }));
};
};
}