2022-12-31 11:52:38 +01:00
|
|
|
{ pkgs, ... }:
|
2018-08-24 12:40:52 +02:00
|
|
|
|
|
|
|
let
|
2018-08-24 15:53:27 +02:00
|
|
|
ucm = pkgs.fetchzip {
|
2018-08-24 12:40:52 +02:00
|
|
|
url = "https://github.com/plbossart/UCM/archive/2050ca78a4d1a853d1ba050b591f42e6f97adfc0.tar.gz";
|
|
|
|
sha256 = "1rs4mpz3b965nmz0yhy6j4ga3fdz320qnpkd7d61nvpv9c3i6zwj";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
../../common/cpu/intel
|
|
|
|
../../common/pc/laptop
|
|
|
|
];
|
|
|
|
|
|
|
|
# Required for screen brightness control:
|
|
|
|
boot.kernelParams = [ "acpi_backlight=vendor" ];
|
|
|
|
|
|
|
|
# Sound requires a custom UCM config:
|
|
|
|
system.replaceRuntimeDependencies = [{
|
2021-06-30 23:50:00 +02:00
|
|
|
original = pkgs.alsa-lib;
|
2018-08-24 12:40:52 +02:00
|
|
|
|
2022-12-31 11:52:38 +01:00
|
|
|
replacement = pkgs.alsa-lib.overrideAttrs (_super: {
|
2018-08-24 12:40:52 +02:00
|
|
|
postFixup = "cp -r ${ucm}/chtmax98090 $out/share/alsa/ucm";
|
|
|
|
});
|
|
|
|
}];
|
|
|
|
}
|