nixos/bolt: init at 0.7
This commit is contained in:
parent
c2a1d01a4b
commit
139e12323f
@ -280,6 +280,7 @@
|
|||||||
./services/hardware/acpid.nix
|
./services/hardware/acpid.nix
|
||||||
./services/hardware/actkbd.nix
|
./services/hardware/actkbd.nix
|
||||||
./services/hardware/bluetooth.nix
|
./services/hardware/bluetooth.nix
|
||||||
|
./services/hardware/bolt.nix
|
||||||
./services/hardware/brltty.nix
|
./services/hardware/brltty.nix
|
||||||
./services/hardware/freefall.nix
|
./services/hardware/freefall.nix
|
||||||
./services/hardware/fwupd.nix
|
./services/hardware/fwupd.nix
|
||||||
|
34
nixos/modules/services/hardware/bolt.nix
Normal file
34
nixos/modules/services/hardware/bolt.nix
Normal file
@ -0,0 +1,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 ];
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user