mirror of
				https://github.com/Stunkymonkey/nixos.git
				synced 2025-10-31 09:42:11 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
	
		
			400 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
	
		
			400 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| {
 | |
|   config,
 | |
|   lib,
 | |
|   pkgs,
 | |
|   ...
 | |
| }:
 | |
| let
 | |
|   cfg = config.my.hardware.debug;
 | |
| in
 | |
| {
 | |
|   options.my.hardware.debug = with lib; {
 | |
|     enable = mkEnableOption "hardware-debug configuration";
 | |
|   };
 | |
| 
 | |
|   config = lib.mkIf cfg.enable {
 | |
|     environment.systemPackages = with pkgs; [
 | |
|       dmidecode
 | |
|       f3
 | |
|       hdparm
 | |
|       lm_sensors
 | |
|       nvme-cli
 | |
|       pciutils
 | |
|       smartmontools
 | |
|       testdisk
 | |
|     ];
 | |
|   };
 | |
| }
 | 
