main
 1{lib, ...}: {
 2  den.aspects.core.hardware.thunderbolt = {
 3    nixos = {config, ...}: let
 4      hasThunderbolt =
 5        lib.any (c: c.driver or "" == "thunderbolt")
 6        config.hardware.facter.report.hardware.usb_controller;
 7      isVM = config.hardware.facter.report.virtualisation != "none";
 8    in
 9      lib.mkIf (hasThunderbolt && !isVM) {
10        services.hardware.bolt.enable = true;
11      };
12  };
13}