Modularise opengl packages

This commit is contained in:
Simon Bruder 2020-10-16 18:34:51 +02:00
parent c03ae8fbd0
commit 961e8fc7fc
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F
3 changed files with 6 additions and 4 deletions

View file

@ -4,6 +4,7 @@
imports = imports =
[ [
./hardware-configuration.nix ./hardware-configuration.nix
../../modules/gpu/intel.nix
../../modules/restic.nix ../../modules/restic.nix
(import ../../modules/libvirt.nix { inherit pkgs; gui = true; }) (import ../../modules/libvirt.nix { inherit pkgs; gui = true; })
#../../modules/texlive.nix #../../modules/texlive.nix

5
modules/gpu/intel.nix Normal file
View file

@ -0,0 +1,5 @@
{ pkgs, ... }:
{
hardware.opengl.extraPackages = [ pkgs.vaapiIntel ];
}

View file

@ -42,8 +42,4 @@
mkvtoolnix-cli # matroska (de-)muxing mkvtoolnix-cli # matroska (de-)muxing
] ]
); );
hardware.opengl.extraPackages = with pkgs; if gui then [
pkgs.vaapiIntel
] else [ ];
} }