mirror of
https://git.adityakumar.xyz/nix-conf.git
synced 2025-02-21 23:30:02 +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 = {
|
config,
|
||||||
#firmware = with pkgs; [firmwareLinuxNonfree];
|
lib,
|
||||||
opengl = {
|
pkgs,
|
||||||
enable = true;
|
...
|
||||||
extraPackages = with pkgs; [vaapiIntel vaapiVdpau libvdpau-va-gl intel-media-driver];
|
}: {
|
||||||
|
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