diff options
author | Alan Pearce | 2017-09-09 15:13:50 +0200 |
---|---|---|
committer | Alan Pearce | 2017-09-09 16:49:30 +0200 |
commit | cca3a69947eb84d79c5816648cc104ad9b55623f (patch) | |
tree | 284f9da32786ffb1b4950359342a6dd0506ba60d /modules | |
parent | a3761db1bf6df8cc4e58dbbdde75f10059dd6068 (diff) | |
download | nixos-configuration-cca3a69947eb84d79c5816648cc104ad9b55623f.tar.lz nixos-configuration-cca3a69947eb84d79c5816648cc104ad9b55623f.tar.zst nixos-configuration-cca3a69947eb84d79c5816648cc104ad9b55623f.zip |
Create more hardware modules
Diffstat (limited to 'modules')
-rw-r--r-- | modules/bare-metal.nix | 13 | ||||
-rw-r--r-- | modules/intel-gpu.nix | 6 | ||||
-rw-r--r-- | modules/t470s.nix | 7 |
3 files changed, 26 insertions, 0 deletions
diff --git a/modules/bare-metal.nix b/modules/bare-metal.nix new file mode 100644 index 0000000..04046b1 --- /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 0000000..775396a --- /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 0000000..ba2c17c --- /dev/null +++ b/modules/t470s.nix @@ -0,0 +1,7 @@ +{ config, pkgs, ... }: + +{ hardware.usbWwan.enable = true; + hardware.firmware = with pkgs; [ + firmwareLinuxNonfree + ]; +} |