nix-config/modules/baremetal.nix

24 lines
489 B
Nix

{ 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
];
nix.settings.system-features = [
"kvm" "big-parallel" "nixos-test" "benchmark"
];
services = {
# just assume there are ssd's everywhere
fstrim.enable = true;
smartd.enable = true;
};
};
}