diff --git a/modules/common/applications/firefox.nix b/modules/common/applications/firefox.nix index f2a9d65..6202bf9 100644 --- a/modules/common/applications/firefox.nix +++ b/modules/common/applications/firefox.nix @@ -71,6 +71,8 @@ "layout.css.color-mix.enabled" = true; "ui.systemUsesDarkTheme" = if config.theme.dark == true then 1 else 0; + "media.ffmpeg.vaapi.enabled" = + true; # Enable hardware video acceleration }; userChrome = '' :root { diff --git a/modules/common/applications/media.nix b/modules/common/applications/media.nix index 9152bc7..279042b 100644 --- a/modules/common/applications/media.nix +++ b/modules/common/applications/media.nix @@ -21,7 +21,10 @@ programs.mpv = { enable = true; bindings = { }; - config = { image-display-duration = 2; }; + config = { + image-display-duration = 2; + hwdec = "auto-safe"; + }; scripts = [ # Automatically load playlist entries before and after current file