refactor(hardware): major refactor of hardware modules

This commit is contained in:
ooks-io 2024-04-08 17:30:42 +12:00
parent 8f229750b0
commit 4a177d2122
18 changed files with 95 additions and 191 deletions

View file

@ -1,6 +1,7 @@
{ inputs, outputs, lib, config, pkgs, ... }:
let
isx86Linux = pkgs: with pkgs.stdenv; hostPlatform.isLinux && hostPlatform.isx86;
cfg = config.systemProfile.base;
in
@ -51,17 +52,8 @@ in
enableAllFirmware = true;
opengl = {
enable = true;
extraPackages = with pkgs; [
intel-media-driver
vaapiIntel
vaapiVdpau
libvdpau-va-gl
libva-utils
];
extraPackages32 = with pkgs.pkgsi686Linux; [
vaapiVdpau
libvdpau-va-gl
];
driSupport = true;
driSupport32Bit = isx86Linux pkgs;
};
};
system.stateVersion = lib.mkDefault "23.11";