refactor(modules/hardware): move hardware config to modules
This commit is contained in:
parent
cb01ba95b0
commit
067e0c9970
7 changed files with 40 additions and 10 deletions
9
modules/nixos/hardware/cpu.nix
Normal file
9
modules/nixos/hardware/cpu.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
config = lib.mkMerge [
|
||||
(lib.mkIf (config.hardware.platform == "amd"){
|
||||
hardware.cpu.amd.updateMicrocode = true;
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
})
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue