about summary refs log tree commit diff
path: root/hosts/common/hardware
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-02-27 08:32:28 -0800
committerFranck Cuny <franck@fcuny.net>2022-02-27 13:05:30 -0800
commit4a34a905501f013a7a1aefea8ed93db6e094697f (patch)
tree994278b4cba02f0853b87a72b2eb26c9ffbd3423 /hosts/common/hardware
parentsway: import systemd environments on startup (diff)
downloadworld-4a34a905501f013a7a1aefea8ed93db6e094697f.tar.gz
hardware: start capturing hardware related stuff
Create a new module for hardware related things, in order to configure
correctly the various machines.
Diffstat (limited to 'hosts/common/hardware')
-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" ];
+}