From 4a34a905501f013a7a1aefea8ed93db6e094697f Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 27 Feb 2022 08:32:28 -0800 Subject: hardware: start capturing hardware related stuff Create a new module for hardware related things, in order to configure correctly the various machines. --- hosts/common/hardware/intel.nix | 4 ++++ hosts/common/hardware/xps9300.nix | 6 ++++++ 2 files changed, 10 insertions(+) create mode 100644 hosts/common/hardware/intel.nix create mode 100644 hosts/common/hardware/xps9300.nix (limited to 'hosts/common/hardware') 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" ]; +} -- cgit 1.4.1