hardware/debug: migrate from legacy

This commit is contained in:
Felix Buehler 2023-03-19 16:01:30 +01:00
parent e8d3987578
commit ea873305c8
4 changed files with 24 additions and 10 deletions

View file

@ -2,14 +2,4 @@
{
services.smartd.enable = true;
environment.systemPackages = with pkgs; [
dmidecode
f3
hdparm
lm_sensors
nvme-cli
pciutils
smartmontools
testdisk
];
}

View file

@ -11,6 +11,7 @@ in
my.hardware = {
bluetooth.enable = true;
debug.enable = true;
firmware = {
enable = true;
cpuFlavor = cpuFlavor;

View file

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

View file

@ -4,6 +4,7 @@
{
imports = [
./bluetooth
./debug
./firmware
./graphics
./keychron