summaryrefslogtreecommitdiffstats
path: root/lass/2configs/hw/gpd-pocket.nix
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2017-12-07 17:33:08 +0100
committerlassulus <lassulus@lassul.us>2017-12-07 17:33:08 +0100
commita9b72bd2901ca232eb7b6523c535c593a36521ef (patch)
tree693551de4b7d8c8d31c4c6950a41941857997edf /lass/2configs/hw/gpd-pocket.nix
parente909dcaefe3fd9a7b944babb97a53c824fad3d8c (diff)
l: add gpd-pocket hardware
Diffstat (limited to 'lass/2configs/hw/gpd-pocket.nix')
-rw-r--r--lass/2configs/hw/gpd-pocket.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/lass/2configs/hw/gpd-pocket.nix b/lass/2configs/hw/gpd-pocket.nix
new file mode 100644
index 000000000..e3d212741
--- /dev/null
+++ b/lass/2configs/hw/gpd-pocket.nix
@@ -0,0 +1,20 @@
+{ pkgs, ... }:
+
+let
+ dummy_firmware = pkgs.writeTextFile {
+ name = "brcmfmac4356-pcie.txt";
+ text = builtins.readFile ./brcmfmac4356-pcie.txt;
+ destination = "/lib/firmware/brcm/brcmfmac4356-pcie.txt";
+ };
+in {
+ hardware.firmware = [ dummy_firmware ];
+
+ boot.kernelPackages = pkgs.linuxPackages_4_14;
+ boot.kernelParams = [
+ "fbcon=rotate:1"
+ ];
+ services.tlp.enable = true;
+ services.xserver.displayManager.sessionCommands = ''
+ (sleep 2 && ${pkgs.xorg.xrandr}/bin/xrandr --output DSI1 --rotate right)
+ '';
+}