2023-05-19 21:38:16 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
options.c3d2.baremetal = lib.mkEnableOption "baremetal";
|
|
|
|
|
|
|
|
config = lib.mkIf config.c3d2.baremetal {
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
lshw
|
|
|
|
pciutils # lscpi
|
|
|
|
smartmontools # for smartctl
|
|
|
|
];
|
|
|
|
|
2023-05-19 23:05:28 +02:00
|
|
|
nix.settings.system-features = [
|
|
|
|
"kvm" "big-parallel" "nixos-test" "benchmark"
|
|
|
|
];
|
|
|
|
|
2023-05-19 21:38:16 +02:00
|
|
|
services.smartd.enable = true;
|
|
|
|
};
|
|
|
|
}
|