summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2017-09-09 15:13:50 +0200
committerAlan Pearce2017-09-09 16:49:30 +0200
commitcca3a69947eb84d79c5816648cc104ad9b55623f (patch)
tree284f9da32786ffb1b4950359342a6dd0506ba60d
parenta3761db1bf6df8cc4e58dbbdde75f10059dd6068 (diff)
downloadnixfiles-cca3a69947eb84d79c5816648cc104ad9b55623f.tar.lz
nixfiles-cca3a69947eb84d79c5816648cc104ad9b55623f.tar.zst
nixfiles-cca3a69947eb84d79c5816648cc104ad9b55623f.zip
Create more hardware modules
-rw-r--r--modules/bare-metal.nix13
-rw-r--r--modules/intel-gpu.nix6
-rw-r--r--modules/t470s.nix7
-rw-r--r--satoshipad.nix3
4 files changed, 29 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
+  ];
+}
diff --git a/satoshipad.nix b/satoshipad.nix
index 4b84ab53..b5178ca1 100644
--- a/satoshipad.nix
+++ b/satoshipad.nix
@@ -18,6 +18,9 @@
     ./modules/trackball.nix
     ./modules/xserver.nix
     ./modules/british-english.nix
+    ./modules/bare-metal.nix
+    ./modules/intel-gpu.nix
+    ./modules/t470s.nix
   ];
 
   networking.hostName = "satoshipad";