Modularise opengl packages

restic-rest-server
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 =
[
./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
View File

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

View File

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