{
  config,
  lib,
  ...
}:
with lib;

mkIf (elem "virtualbox" config.machine.services) {
  virtualisation.virtualbox.host = {
    enable = true;
    headless = true;
  };
}