Files
nixos-blueprint/modules/nixos/shared/hardware/graphics/vaapi.nix
T
unexplrd 14b4bdb585 Split shared host config into dedicated modules
- Add shared modules for boot, hardware, networking, input, and host defaults
- Move host-specific TOML flags to new option namespaces
- Update SSH and service defaults for the new layout
2026-05-11 15:01:36 +03:00

30 lines
629 B
Nix

{
config,
lib,
pkgs,
...
}: let
inherit (lib) mkIf mkOption types;
cfg = config.unexplrd.hardware.graphics.vaapi;
in {
options.unexplrd.hardware.graphics.vaapi = mkOption {
type = types.nullOr (types.enum ["intel-media-driver" "nvidia"]);
default = null;
};
config = lib.mkMerge [
(mkIf (cfg == "intel-media-driver") {
hardware.graphics.extraPackages = with pkgs; [
intel-compute-runtime
intel-media-driver
vpl-gpu-rt
];
})
(mkIf (cfg == "nvidia") {
hardware.graphics.extraPackages = with pkgs; [
nvidia-vaapi-driver
];
})
];
}