summary refs log tree commit diff
path: root/nixos/modules/services/hardware/bolt.nix
blob: 32b60af060376355736e00afc6ef9f490243b573 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Thunderbolt 3 device manager

{ config, lib, pkgs, ...}:

with lib;

{
  options = {

    services.hardware.bolt = {

      enable = mkOption {
        type = types.bool;
        default = false;
        description = ''
          Whether to enable Bolt, a userspace daemon to enable
          security levels for Thunderbolt 3 on GNU/Linux.

          Bolt is used by GNOME 3 to handle Thunderbolt settings.
        '';
      };

    };

  };

  config = mkIf config.services.hardware.bolt.enable {

    environment.systemPackages = [ pkgs.bolt ];
    services.udev.packages = [ pkgs.bolt ];
    systemd.packages = [ pkgs.bolt ];

  };
}