Modularise opengl packages
This commit is contained in:
parent
c03ae8fbd0
commit
961e8fc7fc
|
@ -4,6 +4,7 @@
|
|||
imports =
|
||||
[
|
||||
./hardware-configuration.nix
|
||||
../../modules/gpu/intel.nix
|
||||
../../modules/restic.nix
|
||||
(import ../../modules/libvirt.nix { inherit pkgs; gui = true; })
|
||||
#../../modules/texlive.nix
|
||||
|
|
5
modules/gpu/intel.nix
Normal file
5
modules/gpu/intel.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
hardware.opengl.extraPackages = [ pkgs.vaapiIntel ];
|
||||
}
|
|
@ -42,8 +42,4 @@
|
|||
mkvtoolnix-cli # matroska (de-)muxing
|
||||
]
|
||||
);
|
||||
|
||||
hardware.opengl.extraPackages = with pkgs; if gui then [
|
||||
pkgs.vaapiIntel
|
||||
] else [ ];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue