summary refs log tree commit diff stats
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/bare-metal.nix13
-rw-r--r--modules/intel-gpu.nix6
-rw-r--r--modules/t470s.nix7
3 files changed, 26 insertions, 0 deletions
diff --git a/modules/bare-metal.nix b/modules/bare-metal.nix
new file mode 100644
index 00000000..04046b1b
--- /dev/null
+++ b/modules/bare-metal.nix
@@ -0,0 +1,13 @@
+{ config, pkgs, ... }:
+
+{ environment.systemPackages = with pkgs; [
+    fuse_exfat
+    cryptsetup
+    dmidecode
+    hdparm
+    pciutils
+    usbutils
+  ];
+
+  boot.kernelPackages = pkgs.linuxPackages_4_12;
+}
diff --git a/modules/intel-gpu.nix b/modules/intel-gpu.nix
new file mode 100644
index 00000000..775396ae
--- /dev/null
+++ b/modules/intel-gpu.nix
@@ -0,0 +1,6 @@
+{ config, pkgs, ... }:
+
+{ hardware.opengl.extraPackages = with pkgs; [
+    vaapiIntel
+  ];
+}
diff --git a/modules/t470s.nix b/modules/t470s.nix
new file mode 100644
index 00000000..ba2c17cc
--- /dev/null
+++ b/modules/t470s.nix
@@ -0,0 +1,7 @@
+{ config, pkgs, ... }:
+
+{ hardware.usbWwan.enable = true;
+  hardware.firmware = with pkgs; [
+    firmwareLinuxNonfree
+  ];
+}