1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00

Add appropriate option defaults

This commit is contained in:
Periklis Tsirakidis 2018-06-05 10:55:01 +02:00
parent b85d89a1ae
commit 94fdf827e1

View file

@ -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";