import "@typespec/json-schema"; using TypeSpec.JsonSchema; @jsonSchema("/modules/systemd.json") model SystemdModule { /** The systemd module streamlines the management of systemd units during image building. * https://blue-build.org/reference/modules/systemd/ */ type: "systemd"; /** System unit configuration. */ system?: { /** List of systemd units to enable. (runs on system boot) */ enabled?: Array; /** List of systemd units to disable. (does not run on system boot, unless another unit strictly requires it) */ disabled?: Array; /** List of systemd units to mask. (does not run on system boot, under any circumstances) */ masked?: Array; /** List of systemd units to unmask. (runs on system boot, even if previously masked) */ unmasked?: Array; }; /** User unit configuration (with --global to make changes for all users). */ user?: { /** List of systemd units to enable. (runs for the users) */ enabled?: Array; /** List of systemd units to disable. (does not run for the users, unless another unit strictly requires it) */ disabled?: Array; /** List of systemd units to mask. (does not run for the users, under any circumstances) */ masked?: Array; /** List of systemd units to unmask. (runs for the users, even if previously masked) */ unmasked?: Array; }; }