about summary refs log tree commit diff
path: root/hosts
diff options
context:
space:
mode:
Diffstat (limited to 'hosts')
-rw-r--r--hosts/common/hardware/intel.nix4
-rw-r--r--hosts/common/hardware/xps9300.nix6
2 files changed, 10 insertions, 0 deletions
diff --git a/hosts/common/hardware/intel.nix b/hosts/common/hardware/intel.nix
new file mode 100644
index 0000000..ac279fb
--- /dev/null
+++ b/hosts/common/hardware/intel.nix
@@ -0,0 +1,4 @@
+{
+  hardware.cpu.intel.updateMicrocode = true;
+  boot.kernelModules = [ "kvm-intel" ];
+}
diff --git a/hosts/common/hardware/xps9300.nix b/hosts/common/hardware/xps9300.nix
new file mode 100644
index 0000000..f944f55
--- /dev/null
+++ b/hosts/common/hardware/xps9300.nix
@@ -0,0 +1,6 @@
+{
+  imports = [
+    ./intel.nix
+  ];
+  boot.kernelParams = [ "mem_sleep_default=deep" ];
+}