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;
};
};
};
}

View File

@@ -10,6 +10,7 @@
./hardware-configuration.nix
./nix-alien.nix
./wireguard.nix
./apps/firefox.nix
];
# Bootloader.
@@ -151,7 +152,6 @@
};
# Install firefox.
programs.firefox.enable = true;
programs.nix-ld.enable = true;