firefox config file + video hw acceleration
This commit is contained in:
24
apps/firefox.nix
Normal file
24
apps/firefox.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user