8.nix-darwin/modules
Tyler Miller 861af0fc94
fix(launchd): improve StartCalendarInterval
Stricter launchd -> StartCalendarInterval type:

- Verify that the integers passed to `Minute`, `Hour`, etc. are within
  range.

- When provided, the value for StartCalendarInterval must be a non-empty
  list of calendar intervals and must not contain duplicates entries
  (throw an error otherwise).

- For increased flexibility and backwards-compatibility, allow an
  attrset to be passed as well (which will be type-checked and is
  functionally equivalent to passing a singleton list). Allowing an
  attrset or list is precisely in-line with what `launchd.plist(5)`
  accepts for StartCalendarInterval.

Migrate `nix.gc.interval` and `nix.optimise.interval` over to use this
new type, and update their defaults to run weekly instead of daily.

Create `modules/launchd/types.nix` file for easier/modular use of
launchd types needed in multiple files.

Documentation:

- Update and improve wording/documentation of launchd's
  `StartCalendarInterval`.

- Improve wording/documentation of `nix.gc.interval` and
  `nix.optimise.interval` ("time interval" can be misleading as it's
  actually a "calendar interval"; e.g. `{ Hour = 3; Minute = 15;}`
  runs daily, not every 3.25 hours).
2024-06-09 11:20:15 -07:00
..
documentation treewide: remove lib.mdDoc 2024-04-19 04:05:50 +02:00
environment environment: Adjust systemPath order to allow injecting in the middle 2024-05-23 09:55:35 -04:00
examples Add zsh completions to darwin-rebuld by default 2024-01-27 19:37:27 -08:00
fonts treewide: remove lib.mdDoc 2024-04-19 04:05:50 +02:00
launchd fix(launchd): improve StartCalendarInterval 2024-06-09 11:20:15 -07:00
lib treewide: remove lib.mdDoc 2024-04-19 04:05:50 +02:00
misc treewide: remove lib.mdDoc 2024-04-19 04:05:50 +02:00
networking treewide: remove lib.mdDoc 2024-04-19 04:05:50 +02:00
nix treewide: remove lib.mdDoc 2024-04-19 04:05:50 +02:00
programs Change zsh default prompt 2024-05-20 09:48:03 +02:00
security treewide: remove lib.mdDoc 2024-04-19 04:05:50 +02:00
services fix(launchd): improve StartCalendarInterval 2024-06-09 11:20:15 -07:00
system Update modules/system/defaults/NSGlobalDomain.nix 2024-05-25 03:14:18 -03:00
time treewide: remove lib.mdDoc 2024-04-19 04:05:50 +02:00
users treewide: remove lib.mdDoc 2024-04-19 04:05:50 +02:00
alias.nix Update def and implementation of nix.package to match NixOS module 2022-08-16 10:41:51 -07:00
homebrew.nix treewide: remove lib.mdDoc 2024-04-19 04:05:50 +02:00
meta.nix treewide: remove lib.mdDoc 2024-04-19 04:05:50 +02:00
module-list.nix Add nix.optimise module 2024-03-27 12:50:04 -07:00