mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 09:54:40 +02:00
hardware/debug: migrate from legacy
This commit is contained in:
parent
e8d3987578
commit
ea873305c8
4 changed files with 24 additions and 10 deletions
|
@ -2,14 +2,4 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
services.smartd.enable = true;
|
services.smartd.enable = true;
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
dmidecode
|
|
||||||
f3
|
|
||||||
hdparm
|
|
||||||
lm_sensors
|
|
||||||
nvme-cli
|
|
||||||
pciutils
|
|
||||||
smartmontools
|
|
||||||
testdisk
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,6 +11,7 @@ in
|
||||||
|
|
||||||
my.hardware = {
|
my.hardware = {
|
||||||
bluetooth.enable = true;
|
bluetooth.enable = true;
|
||||||
|
debug.enable = true;
|
||||||
firmware = {
|
firmware = {
|
||||||
enable = true;
|
enable = true;
|
||||||
cpuFlavor = cpuFlavor;
|
cpuFlavor = cpuFlavor;
|
||||||
|
|
22
modules/hardware/debug/default.nix
Normal file
22
modules/hardware/debug/default.nix
Normal 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
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
|
@ -4,6 +4,7 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./bluetooth
|
./bluetooth
|
||||||
|
./debug
|
||||||
./firmware
|
./firmware
|
||||||
./graphics
|
./graphics
|
||||||
./keychron
|
./keychron
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue