mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 09:54:40 +02:00
17 lines
335 B
Nix
17 lines
335 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;
|
||
|
};
|
||
|
}
|