mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-23 03:43:55 -05:00
15 lines
363 B
Nix
15 lines
363 B
Nix
|
{
|
||
|
config,
|
||
|
lib,
|
||
|
pkgs,
|
||
|
...
|
||
|
}: {
|
||
|
config = lib.mkIf config.ar.hardware.cpu.intel {
|
||
|
boot.kernelModules = ["kvm-intel"];
|
||
|
hardware.cpu.intel.updateMicrocode = true;
|
||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||
|
powerManagement.powertop.enable = config.ar.hardware.laptop;
|
||
|
services.thermald.enable = config.ar.hardware.laptop;
|
||
|
};
|
||
|
}
|