From cca3a69947eb84d79c5816648cc104ad9b55623f Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 9 Sep 2017 15:13:50 +0200 Subject: Create more hardware modules --- modules/bare-metal.nix | 13 +++++++++++++ modules/intel-gpu.nix | 6 ++++++ modules/t470s.nix | 7 +++++++ satoshipad.nix | 3 +++ 4 files changed, 29 insertions(+) create mode 100644 modules/bare-metal.nix create mode 100644 modules/intel-gpu.nix create mode 100644 modules/t470s.nix 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"; -- cgit 1.4.1