feat: firefox hardware accel
This commit is contained in:
parent
c69fcfa2d2
commit
3de23c6cb4
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
".ssh/known_hosts"
|
||||
]
|
||||
++ optionals config.programs.rofi.enable [
|
||||
".cache/rofi-3.runcache"
|
||||
#".cache/rofi-3.runcache"
|
||||
];
|
||||
directories = with lib.lists;
|
||||
[]
|
||||
|
|
|
@ -19,6 +19,8 @@
|
|||
".steam"
|
||||
# Ken follets pillars of earth
|
||||
".local/share//Daedalic Entertainment GmbH/"
|
||||
# Nvidia shader cache
|
||||
".cache/nvidia"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
packages = with pkgs; [
|
||||
nextcloud-client
|
||||
discord
|
||||
sirula
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue