krebs.backup.plans.*.startAt: null disables timer

This commit is contained in:
tv 2016-02-07 16:08:07 +01:00
parent 4c40eba816
commit 00525dc0ef

View File

@ -30,7 +30,7 @@ let
};
startAt = mkOption {
default = "hourly";
type = types.str; # TODO systemd.time(7)'s calendar event
type = with types; nullOr str; # TODO systemd.time(7)'s calendar event
};
snapshots = mkOption {
default = {
@ -115,7 +115,8 @@ let
ExecStart = push plan;
Type = "oneshot";
};
startAt = plan.startAt;
} // optionalAttrs (plan.startAt != null) {
inherit (plan) startAt;
};
makePullService = plan: assert isPullDst plan; {
@ -124,7 +125,8 @@ let
ExecStart = pull plan;
Type = "oneshot";
};
startAt = plan.startAt;
} // optionalAttrs (plan.startAt != null) {
inherit (plan) startAt;
};
push = plan: let