From 2c078669e3b526f3c4ea9d383adddedf30535946 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Tue, 5 Apr 2022 20:23:51 -0700 Subject: refactor intel related configuration --- modules/hardware/intel/default.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 modules/hardware/intel/default.nix (limited to 'modules/hardware/intel/default.nix') diff --git a/modules/hardware/intel/default.nix b/modules/hardware/intel/default.nix new file mode 100644 index 0000000..9a53f35 --- /dev/null +++ b/modules/hardware/intel/default.nix @@ -0,0 +1,13 @@ +{ config, lib, ... }: +let cfg = config.my.hardware.intel; +in { + options.my.hardware.intel = with lib; { + enable = mkEnableOption "intel related configuration"; + }; + + config = lib.mkIf cfg.enable { + # Enable microcode update + hardware.cpu.intel.updateMicrocode = true; + boot.kernelModules = [ "kvm-intel" ]; + }; +} -- cgit v1.2.3