1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-12-28 20:49:45 +01:00
nixos-hardware/toshiba/swanky/default.nix
Jörg Thalheim f870de5eae
toshiba/swanky: switch to default kernels
Both unstable and 19.03 come with 4.19+ kernels
making this option obsolete.
2019-07-02 10:49:23 +01:00

27 lines
649 B
Nix

{ lib, pkgs, ... }:
let
ucm = pkgs.fetchzip {
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 = [{
original = pkgs.alsaLib;
replacement = pkgs.alsaLib.overrideAttrs (super: {
postFixup = "cp -r ${ucm}/chtmax98090 $out/share/alsa/ucm";
});
}];
}