587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
31 lines
679 B
Nix
31 lines
679 B
Nix
{ config, lib, pkgs, ...}:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.services.hardware.bolt;
|
|
in
|
|
{
|
|
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.
|
|
'';
|
|
};
|
|
|
|
package = mkPackageOption pkgs "bolt" { };
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
environment.systemPackages = [ cfg.package ];
|
|
services.udev.packages = [ cfg.package ];
|
|
systemd.packages = [ cfg.package ];
|
|
};
|
|
}
|