firefox config file + video hw acceleration

This commit is contained in:
2025-05-08 01:06:42 +03:00
parent 27c2f8fbc2
commit 190850691c
2 changed files with 25 additions and 1 deletions

24
apps/firefox.nix Normal file
View File

@@ -0,0 +1,24 @@
{ config, pkgs, lib, ... }:
let
lock-false = {
Value = false;
Status = "locked";
};
lock-true = {
Value = true;
Status = "locked";
};
in
{
programs.firefox = {
enable = true;
policies = {
Preferences = {
"widget.wayland.vsync.enabled" = lock-false;
"widget.wayland.opaque-region.enabled" = lock-false;
"media.ffmpeg.vaapi.enabled" = lock-true;
"media.hardware-video-decoding.force-enabled" = lock-true;
};
};
};
}