mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-12-27 12:09:45 +01:00
commit
fbf167ed1e
3 changed files with 60 additions and 0 deletions
8
common/cpu/intel/kaby-lake/default.nix
Normal file
8
common/cpu/intel/kaby-lake/default.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
imports = [ ../. ];
|
||||
|
||||
kernelParams = [
|
||||
"i915.enable_fbc=1"
|
||||
"i915.enable_psr=2"
|
||||
];
|
||||
}
|
26
dell/xps/13-9360/default.nix
Normal file
26
dell/xps/13-9360/default.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
../../../common/cpu/intel/kaby-lake
|
||||
../../../common/pc/laptop
|
||||
];
|
||||
|
||||
boot.blacklistedKernelModules = [ "psmouse" ]; # touchpad goes over i2c
|
||||
|
||||
# TODO: decide on boot loader policy
|
||||
boot.loader = {
|
||||
efi.canTouchEfiVariables = lib.mkDefault true;
|
||||
systemd-boot.enable = lib.mkDefault true;
|
||||
};
|
||||
|
||||
hardware.firmware = lib.mkBefore [ pkgs.qca6174-firmware ];
|
||||
|
||||
# TODO: move to general HiDPI profile
|
||||
i18n.consoleFont = lib.mkDefault "latarcyrheb-sun32"; # 4K screen, use bigger console font
|
||||
|
||||
# TODO: upstream to NixOS/nixpkgs
|
||||
nixpkgs.overlays = [(final: previous: {
|
||||
qca6174-firmware = final.callPackage ./qca6174-firmware.nix {};
|
||||
})];
|
||||
}
|
26
dell/xps/13-9360/qca6174-firmware.nix
Normal file
26
dell/xps/13-9360/qca6174-firmware.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ stdenv, fetchurl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${target}-firmware-${version}";
|
||||
version = "${branch}-00042";
|
||||
|
||||
branch = "4.4.1.c1";
|
||||
target = "QCA6174";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/kvalo/ath10k-firmware/raw/master/${target}/hw3.0/${branch}/firmware-6.bin_RM.${version}-QCARMSWP-1";
|
||||
sha256 = "01vvz3qhqw5l3yilcqgk1spk4y9k4qy7na7a57cbl037r231szdh";
|
||||
};
|
||||
|
||||
buildCommand = ''
|
||||
install -D $src $out/lib/firmware/ath10k/${target}/hw3.0/firmware-6.bin
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Updated firmware for the qca6174 wireless chip";
|
||||
homepage = "https://github.com/kvalo/ath10k-firmware/tree/master/QCA6174/hw3.0";
|
||||
license = licenses.unfreeRedistributable;
|
||||
maintainers = with maintainers; [ yorickvp ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue