hardware/thunderbolt: modularize

This commit is contained in:
Felix Buehler 2023-01-08 00:46:09 +01:00
parent 081fee5481
commit 0ba8d93008
5 changed files with 18 additions and 8 deletions

View file

@ -0,0 +1,16 @@
{ 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;
};
}