34 lines
815 B
Nix
34 lines
815 B
Nix
{ config, pkgs, ... }:
|
|
{
|
|
hardware = {
|
|
cpu.intel.updateMicrocode = true;
|
|
enableAllFirmware = true;
|
|
pulseaudio.enable = false;
|
|
bluetooth = {
|
|
enable = true;
|
|
settings = {
|
|
General = {
|
|
Enable = "Source,Sink,Media,Socket";
|
|
};
|
|
};
|
|
};
|
|
logitech = {
|
|
wireless.enable = true;
|
|
wireless.enableGraphical = true;
|
|
};
|
|
opengl = {
|
|
enable = true;
|
|
extraPackages = with pkgs; [
|
|
intel-media-driver # LIBVA_DRIVER_NAME=iHD
|
|
vaapiIntel # LIBVA_DRIVER_NAME=i965 (older but works better for Firefox/Chromium)
|
|
vaapiVdpau
|
|
libvdpau-va-gl
|
|
];
|
|
};
|
|
};
|
|
# Video acceleration
|
|
nixpkgs.config.packageOverrides = pkgs: {
|
|
vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; };
|
|
};
|
|
}
|