mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
20 lines
548 B
Nix
20 lines
548 B
Nix
{
|
|
physical = { lib, ... }: lib.mkMerge
|
|
[
|
|
{ hardware.cpu.amd.updateMicrocode = true; }
|
|
{ hardware.cpu.intel.updateMicrocode = true; }
|
|
{ hardware.enableRedistributableFirmware = true; }
|
|
];
|
|
|
|
qemu = { lib, modulesPath, ... }: lib.mkMerge
|
|
[
|
|
(import "${modulesPath}/profiles/qemu-guest.nix" { })
|
|
{ services.qemuGuest.enable = true; }
|
|
];
|
|
|
|
vmware = { lib, ... }: lib.mkMerge
|
|
[
|
|
{ virtualisation.vmware.guest.enable = true; }
|
|
{ boot.initrd.availableKernelModules = [ "mptspi" ]; }
|
|
];
|
|
}
|