2020-04-24 23:36:52 +00:00
|
|
|
# Thunderbolt 3 device manager
|
|
|
|
|
|
|
|
{ config, lib, pkgs, ...}:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
options = {
|
|
|
|
|
|
|
|
services.hardware.bolt = {
|
|
|
|
|
|
|
|
enable = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = false;
|
2022-08-12 12:06:08 +00:00
|
|
|
description = lib.mdDoc ''
|
2020-04-24 23:36:52 +00:00
|
|
|
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 ];
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|