dotfiles/entropy/nixos/modules/video.nix

35 lines
885 B
Nix
Raw Normal View History

2021-11-18 18:04:41 +00:00
{ config, pkgs, ... }:
{
# make the screen usable
#hardware.video.hidpi.enable = true;
#services.xserver.dpi = 180;
nixpkgs.config = {
# enable hardware-accelerated graphics
packageOverrides = pkgs: {
vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; };
# add nixpkgs for unstable package sources
#unstable = import <nixpkgs> {
#config = config.nixpkgs.config;
#};
};
# allow unfree licenced packges
allowUnfree = true;
};
2024-07-01 13:06:56 +00:00
hardware.graphics = {
2021-11-18 18:04:41 +00:00
enable = true;
extraPackages = with pkgs; [
intel-compute-runtime
2022-10-13 13:22:00 +00:00
mesa.drivers
2021-11-18 18:04:41 +00:00
intel-media-driver # LIBVA_DRIVER_NAME=iHD
vaapiIntel # LIBVA_DRIVER_NAME=i965 (older but works better for Firefox/Chromium)
vaapiVdpau
libvdpau-va-gl
];
};
# allow brightness control
services.illum.enable = true;
}