Skip to content

Commit

Permalink
Enabled hardware decode mpv
Browse files Browse the repository at this point in the history
  • Loading branch information
nonetrix committed May 19, 2024
1 parent 0eb27bc commit c050a45
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion amd-gpu.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
rocmPackages.clr.icd
rocm-opencl-icd
rocm-opencl-runtime
# TODO: Seems to not be working, VP8 and HVEC don't worky
#libva
libvdpau-va-gl
vaapiVdpau
];
};

Expand Down
1 change: 1 addition & 0 deletions configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ in {
./graphical/firefox.nix
./graphical/spotify.nix
./graphical/ags/ags.nix
./graphical/mpv.nix
./amd-gpu.nix
./misc/udev.nix
./misc/ntp.nix
Expand Down
11 changes: 11 additions & 0 deletions graphical/mpv.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{...}: let
global = import ../global-var.nix;
in {
home-manager.users.${global.username} = {...}: {
home.file = {
"~/.config/mpv/mpv.conf".text = ''
hwdec=auto
'';
};
};
}

0 comments on commit c050a45

Please sign in to comment.