1 { config, lib, pkgs, ...}:
3 cfg = config.services.hardware.bolt;
7 services.hardware.bolt = {
8 enable = lib.mkOption {
12 Whether to enable Bolt, a userspace daemon to enable
13 security levels for Thunderbolt 3 on GNU/Linux.
15 Bolt is used by GNOME 3 to handle Thunderbolt settings.
19 package = lib.mkPackageOption pkgs "bolt" { };
23 config = lib.mkIf cfg.enable {
24 environment.systemPackages = [ cfg.package ];
25 services.udev.packages = [ cfg.package ];
26 systemd.packages = [ cfg.package ];