feat: firefox hardware accel

This commit is contained in:
Patrick 2023-09-08 01:14:09 +02:00
parent c69fcfa2d2
commit 3de23c6cb4
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F
7 changed files with 19 additions and 8 deletions

View file

@ -12,9 +12,6 @@
home.stateVersion = stateVersion;
}
];
extraSpecialArgs = {
#nixosConfig = config;
};
};
# HM zsh needs this or else the startup order is fucked
# and env variables will be loaded incorrectly

View file

@ -1,4 +1,8 @@
{lib, ...}: {
{
lib,
pkgs,
...
}: {
services.xserver.videoDrivers = lib.mkForce ["nvidia"];
hardware = {
@ -6,6 +10,9 @@
enable = true;
driSupport = true;
driSupport32Bit = true;
extraPackages = with pkgs; [
nvidia-vaapi-driver
];
};
nvidia = {
powerManagement.enable = true;

View file

@ -2,9 +2,12 @@
home = {
sessionVariables = {
# Firefox touch support
"MOZ_USE_XINPUT2" = 1;
MOZ_USE_XINPUT2 = 1;
# Firefox Hardware render
"MOZ_WEBRENDER" = 1;
MOZ_WEBRENDER = 1;
LIBVA_DRIVER_NAME = "nvidia";
NVD_BACKEND = "direct";
MOZ_DISABLE_RDD_SANDBOX = 1;
};
};
xdg.mimeApps.defaultApplications = {

View file

@ -118,6 +118,7 @@
DP-3 = {
mode = "2560x1440@143.998Hz";
pos = "1920,720";
adaptive_sync = "on";
};
};
workspaceOutputAssign = [
@ -144,6 +145,6 @@
WLR_NO_HARDWARE_CURSORS = 1;
NIXOS_OZONE_WL = 1;
# opengl backend flickers, also vulkan is love.
WLR_RENDERER = "vulkan";
#WLR_RENDERER = "vulkan";
};
}

View file

@ -9,7 +9,7 @@
".ssh/known_hosts"
]
++ optionals config.programs.rofi.enable [
".cache/rofi-3.runcache"
#".cache/rofi-3.runcache"
];
directories = with lib.lists;
[]

View file

@ -19,6 +19,8 @@
".steam"
# Ken follets pillars of earth
".local/share//Daedalic Entertainment GmbH/"
# Nvidia shader cache
".cache/nvidia"
];
};
};

View file

@ -3,6 +3,7 @@
packages = with pkgs; [
nextcloud-client
discord
sirula
];
};
}