l: add gpd-pocket hardware
This commit is contained in:
parent
e909dcaefe
commit
a9b72bd290
20
lass/2configs/hw/gpd-pocket.nix
Normal file
20
lass/2configs/hw/gpd-pocket.nix
Normal file
@ -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)
|
||||||
|
'';
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user