From 59bef44059fbd0b80aed887c26f4cf74e517244a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl=20Thom=C3=A9?= Date: Sat, 30 Dec 2023 23:47:20 +0100 Subject: [PATCH] Fix type error ``` error: A definition for option `launchd.user.agents.[...].serviceConfig.StartCalendarInterval' is not of type `null or (list of (submodule))'. Definition values: - In `': { Hour = 0; Minute = 0; } ``` --- modules/launchd/launchd.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/launchd/launchd.nix b/modules/launchd/launchd.nix index b1a2d395b..32fa78155 100644 --- a/modules/launchd/launchd.nix +++ b/modules/launchd/launchd.nix @@ -342,7 +342,7 @@ with lib; StartCalendarInterval = mkOption { default = null; - example = { Hour = 2; Minute = 30; }; + example = [{ Hour = 2; Minute = 30; }]; description = lib.mdDoc '' This optional key causes the job to be started every calendar interval as specified. Missing arguments are considered to be wildcard. The semantics are much like `crontab(5)`. Unlike cron which skips job