mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 18:04:41 +02:00
19 lines
333 B
Nix
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;
|
|
};
|
|
}
|