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-03-28 02:27:06 +00:00
|
|
|
qemu = { lib, modulesPath, ... }: lib.mkMerge
|
2021-12-10 06:34:46 +00:00
|
|
|
[
|
|
|
|
(import "${modulesPath}/profiles/qemu-guest.nix" { })
|
|
|
|
{ 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" ]; }
|
|
|
|
];
|
|
|
|
}
|