nix-config/config/support/physical.nix

20 lines
371 B
Nix

# Configuration for actual physical machines
{
config,
minimal,
lib,
...
}:
{
hardware = lib.mkIf (!minimal) {
enableRedistributableFirmware = true;
enableAllFirmware = true;
};
services = {
fwupd.enable = !minimal;
smartd.enable = !minimal;
thermald.enable = builtins.elem config.nixpkgs.hostPlatform.system [ "x86_64-linux" ];
};
}