nixos/modules/hardware/debug/default.nix

23 lines
392 B
Nix
Raw Permalink Normal View History

2023-03-19 16:01:30 +01:00
{ 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
];
};
}