mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-10-30 17:32:09 +01: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;
|
||
|
|
};
|
||
|
|
}
|