split/rename options, bundle vendor settings

This commit is contained in:
Vinzenz Schroeter 2023-09-24 10:46:15 +02:00
parent 1b7989336e
commit 3a9a7242fc
18 changed files with 109 additions and 54 deletions

View file

@ -0,0 +1,14 @@
{
lib,
config,
...
}: let
isEnabled = config.my.hardware.isIntelCpu;
in {
options.my.hardware.isIntelCpu = lib.mkEnableOption "intel cpu";
config = lib.mkIf isEnabled {
boot.kernelModules = ["kvm-intel"];
hardware.cpu.intel.updateMicrocode = true;
};
}