nixos/teck: init
This commit is contained in:
		
							parent
							
								
									3c0e1f309f
								
							
						
					
					
						commit
						10d375bde1
					
				
							
								
								
									
										16
									
								
								nixos/modules/hardware/keyboard/teck.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								nixos/modules/hardware/keyboard/teck.nix
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,16 @@
 | 
			
		||||
{ config, lib, pkgs, ... }:
 | 
			
		||||
 | 
			
		||||
with lib;
 | 
			
		||||
let
 | 
			
		||||
  cfg = config.hardware.keyboard.teck;
 | 
			
		||||
in
 | 
			
		||||
{
 | 
			
		||||
  options.hardware.keyboard.teck = {
 | 
			
		||||
    enable = mkEnableOption "non-root access to the firmware of TECK keyboards";
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  config = mkIf cfg.enable {
 | 
			
		||||
    services.udev.packages = [ pkgs.teck-udev-rules ];
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -49,6 +49,7 @@
 | 
			
		||||
  ./hardware/i2c.nix
 | 
			
		||||
  ./hardware/sensor/hddtemp.nix
 | 
			
		||||
  ./hardware/sensor/iio.nix
 | 
			
		||||
  ./hardware/keyboard/teck.nix
 | 
			
		||||
  ./hardware/keyboard/zsa.nix
 | 
			
		||||
  ./hardware/ksm.nix
 | 
			
		||||
  ./hardware/ledger.nix
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user