mirror of
https://github.com/kaesaecracker/nixos-configuration.git
synced 2025-01-18 02:20:14 +01:00
deduplicate driver code
This commit is contained in:
parent
6911d314f4
commit
648c853e7c
|
@ -17,7 +17,7 @@ in {
|
|||
boot.kernelModules = ["kvm-intel"];
|
||||
hardware.cpu.intel.updateMicrocode = true;
|
||||
})
|
||||
(lib.mkIf cfg.iGpu {
|
||||
(lib.mkIf (cfg.iGpu || cfg.xe) {
|
||||
hardware.opengl = {
|
||||
extraPackages = with pkgs; [
|
||||
intel-media-driver
|
||||
|
@ -36,18 +36,5 @@ in {
|
|||
nvtop-intel
|
||||
];
|
||||
})
|
||||
(lib.mkIf cfg.xe {
|
||||
hardware.opengl = {
|
||||
extraPackages = with pkgs; [
|
||||
intel-media-driver
|
||||
vaapiIntel
|
||||
vaapiVdpau
|
||||
libvdpau-va-gl
|
||||
];
|
||||
};
|
||||
environment.systemPackages = with pkgs; [
|
||||
nvtop-intel
|
||||
];
|
||||
})
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue