mirror of
https://git.adityakumar.xyz/nix-conf.git
synced 2024-11-21 19:52:52 +00:00
add hardware option
This commit is contained in:
parent
463b9dff23
commit
ea040a6d5e
1 changed files with 19 additions and 9 deletions
|
@ -1,12 +1,22 @@
|
|||
{pkgs, ...}: {
|
||||
hardware = {
|
||||
#firmware = with pkgs; [firmwareLinuxNonfree];
|
||||
opengl = {
|
||||
enable = true;
|
||||
extraPackages = with pkgs; [vaapiIntel vaapiVdpau libvdpau-va-gl intel-media-driver];
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
options = {
|
||||
hardware.enable = lib.mkEnableOption "enable hardware options";
|
||||
};
|
||||
config = lib.mkIf config.hardware.enable {
|
||||
hardware = {
|
||||
#firmware = with pkgs; [firmwareLinuxNonfree];
|
||||
opengl = {
|
||||
enable = true;
|
||||
extraPackages = with pkgs; [vaapiIntel vaapiVdpau libvdpau-va-gl intel-media-driver];
|
||||
};
|
||||
};
|
||||
nixpkgs.config.packageOverrides = pkgs: {
|
||||
vaapiIntel = pkgs.vaapiIntel.override {enableHybridCodec = true;};
|
||||
};
|
||||
};
|
||||
nixpkgs.config.packageOverrides = pkgs: {
|
||||
vaapiIntel = pkgs.vaapiIntel.override {enableHybridCodec = true;};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue