about summary refs log tree commit diff
path: root/profiles/hardware
diff options
context:
space:
mode:
Diffstat (limited to 'profiles/hardware')
-rw-r--r--profiles/hardware/amd.nix6
-rw-r--r--profiles/hardware/intel.nix5
-rw-r--r--profiles/hardware/xps9300.nix12
3 files changed, 23 insertions, 0 deletions
diff --git a/profiles/hardware/amd.nix b/profiles/hardware/amd.nix
new file mode 100644
index 0000000..dc933ee
--- /dev/null
+++ b/profiles/hardware/amd.nix
@@ -0,0 +1,6 @@
+{ ... }:
+{
+  hardware.cpu.amd.updateMicrocode = true;
+  boot.kernelModules = [ "kvm-amd" "k10temp" ];
+  boot.kernelParams = [ "amd_pstate=passive" ];
+}
diff --git a/profiles/hardware/intel.nix b/profiles/hardware/intel.nix
new file mode 100644
index 0000000..756ad9a
--- /dev/null
+++ b/profiles/hardware/intel.nix
@@ -0,0 +1,5 @@
+{ ... }:
+{
+  hardware.cpu.intel.updateMicrocode = true;
+  boot.kernelModules = [ "kvm-intel" ];
+}
diff --git a/profiles/hardware/xps9300.nix b/profiles/hardware/xps9300.nix
new file mode 100644
index 0000000..3e58c88
--- /dev/null
+++ b/profiles/hardware/xps9300.nix
@@ -0,0 +1,12 @@
+{ ... }:
+{
+  imports = [
+    ./intel.nix
+  ];
+
+  boot.kernelParams = [ "mem_sleep_default=deep" ];
+
+  networking.wireless.iwd.enable = true;
+  hardware.bluetooth.enable = true;
+  services.blueman.enable = true;
+}