diff options
| author | Periklis Tsirakidis <periklis.tsirakidis@holidaycheck.com> | 2018-06-05 10:55:01 +0200 |
|---|---|---|
| committer | Periklis Tsirakidis <periklis.tsirakidis@holidaycheck.com> | 2018-06-05 10:55:01 +0200 |
| commit | 94fdf827e1157507a6c8672844a49a8b6ad2dba3 (patch) | |
| tree | fe9f006f3eb8fb6852d200d355547da99ebb6fa2 /modules/services/mail | |
| parent | b85d89a1aee4db1417be1b9aaeb19df736a1364e (diff) | |
Add appropriate option defaults
Diffstat (limited to 'modules/services/mail')
| -rw-r--r-- | modules/services/mail/offlineimap.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/services/mail/offlineimap.nix b/modules/services/mail/offlineimap.nix index b3cdc2f..e6a5753 100644 --- a/modules/services/mail/offlineimap.nix +++ b/modules/services/mail/offlineimap.nix @@ -25,14 +25,14 @@ in { startInterval = mkOption { type = types.nullOr types.int; - default = null; + default = 300; example = literalExample "300"; description = "Optional key to start offlineimap services each N seconds"; }; runQuick = mkOption { - type = types.nullOr types.bool; - default = null; + type = types.bool; + default = false; description = '' Run only quick synchronizations. Ignore any flag updates on IMAP servers. If a flag on the remote IMAP changes, and we have the message locally, it will be left untouched in a quick run. @@ -54,7 +54,7 @@ in { command = "offlineimap"; serviceConfig.KeepAlive = false; serviceConfig.RunAtLoad = true; - serviceConfig.ProgramArguments = [ "-c" "/etc/offlineimaprc" ] ++ optional (cfg.runQuick != null) "-q"; + serviceConfig.ProgramArguments = [ "-c" "/etc/offlineimaprc" ] ++ optional (cfg.runQuick) "-q"; serviceConfig.StartInterval = cfg.startInterval; serviceConfig.StandardErrorPath = "/var/log/offlineimap.log"; serviceConfig.StandardOutPath = "/var/log/offlineimap.log"; |
