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