mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
20 lines
598 B
Nix
20 lines
598 B
Nix
{
|
|
physical = { lib, modulesPath, ... }: lib.mkMerge
|
|
[
|
|
(import "${modulesPath}/installer/scan/not-detected.nix" { inherit lib; })
|
|
{ hardware.cpu.amd.updateMicrocode = true; }
|
|
{ hardware.cpu.intel.updateMicrocode = true; }
|
|
];
|
|
|
|
qemu = { lib, modulesPath, ... }: lib.mkMerge
|
|
[
|
|
(import "${modulesPath}/profiles/qemu-guest.nix" { })
|
|
{ services.qemuGuest.enable = true; }
|
|
];
|
|
|
|
vmware = { lib, modulesPath, ... }: lib.mkMerge
|
|
[
|
|
{ virtualisation.vmware.guest.enable = true; }
|
|
{ boot.initrd.availableKernelModules = [ "mptspi" ]; }
|
|
];
|
|
}
|