nixos/modules/hardware/thunderbolt/default.nix
2024-07-28 21:08:02 +02:00

19 lines
333 B
Nix

{
config,
lib,
pkgs,
...
}:
let
cfg = config.my.hardware.thunderbolt;
in
{
options.my.hardware.thunderbolt = {
enable = lib.mkEnableOption "thunderbolt configuration";
};
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [ thunderbolt ];
services.hardware.bolt.enable = true;
};
}