nixos-config/lib/hardware.nix

21 lines
576 B
Nix
Raw Normal View History

2022-03-28 02:27:06 +00:00
{
2021-12-27 18:21:16 +00:00
physical = { lib, ... }: lib.mkMerge
2021-12-10 06:34:46 +00:00
[
{ hardware.cpu.amd.updateMicrocode = true; }
{ hardware.cpu.intel.updateMicrocode = true; }
2022-03-28 02:27:06 +00:00
{ hardware.enableRedistributableFirmware = true; }
2021-12-10 06:34:46 +00:00
];
2022-05-27 17:20:45 +00:00
qemu = { config, lib, modulesPath, ... }: lib.mkMerge
2021-12-10 06:34:46 +00:00
[
2022-05-27 17:20:45 +00:00
(import "${modulesPath}/profiles/qemu-guest.nix" { inherit config lib; })
2021-12-10 06:34:46 +00:00
{ services.qemuGuest.enable = true; }
];
2021-12-27 18:21:16 +00:00
vmware = { lib, ... }: lib.mkMerge
2021-12-10 06:34:46 +00:00
[
{ virtualisation.vmware.guest.enable = true; }
{ boot.initrd.availableKernelModules = [ "mptspi" ]; }
];
}