feat: firefox hardware accel
This commit is contained in:
parent
c69fcfa2d2
commit
3de23c6cb4
|
@ -12,9 +12,6 @@
|
||||||
home.stateVersion = stateVersion;
|
home.stateVersion = stateVersion;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
extraSpecialArgs = {
|
|
||||||
#nixosConfig = config;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
# HM zsh needs this or else the startup order is fucked
|
# HM zsh needs this or else the startup order is fucked
|
||||||
# and env variables will be loaded incorrectly
|
# and env variables will be loaded incorrectly
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
{lib, ...}: {
|
{
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
services.xserver.videoDrivers = lib.mkForce ["nvidia"];
|
services.xserver.videoDrivers = lib.mkForce ["nvidia"];
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
|
@ -6,6 +10,9 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
driSupport = true;
|
driSupport = true;
|
||||||
driSupport32Bit = true;
|
driSupport32Bit = true;
|
||||||
|
extraPackages = with pkgs; [
|
||||||
|
nvidia-vaapi-driver
|
||||||
|
];
|
||||||
};
|
};
|
||||||
nvidia = {
|
nvidia = {
|
||||||
powerManagement.enable = true;
|
powerManagement.enable = true;
|
||||||
|
|
|
@ -2,9 +2,12 @@
|
||||||
home = {
|
home = {
|
||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
# Firefox touch support
|
# Firefox touch support
|
||||||
"MOZ_USE_XINPUT2" = 1;
|
MOZ_USE_XINPUT2 = 1;
|
||||||
# Firefox Hardware render
|
# Firefox Hardware render
|
||||||
"MOZ_WEBRENDER" = 1;
|
MOZ_WEBRENDER = 1;
|
||||||
|
LIBVA_DRIVER_NAME = "nvidia";
|
||||||
|
NVD_BACKEND = "direct";
|
||||||
|
MOZ_DISABLE_RDD_SANDBOX = 1;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
xdg.mimeApps.defaultApplications = {
|
xdg.mimeApps.defaultApplications = {
|
||||||
|
|
|
@ -118,6 +118,7 @@
|
||||||
DP-3 = {
|
DP-3 = {
|
||||||
mode = "2560x1440@143.998Hz";
|
mode = "2560x1440@143.998Hz";
|
||||||
pos = "1920,720";
|
pos = "1920,720";
|
||||||
|
adaptive_sync = "on";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
workspaceOutputAssign = [
|
workspaceOutputAssign = [
|
||||||
|
@ -144,6 +145,6 @@
|
||||||
WLR_NO_HARDWARE_CURSORS = 1;
|
WLR_NO_HARDWARE_CURSORS = 1;
|
||||||
NIXOS_OZONE_WL = 1;
|
NIXOS_OZONE_WL = 1;
|
||||||
# opengl backend flickers, also vulkan is love.
|
# opengl backend flickers, also vulkan is love.
|
||||||
WLR_RENDERER = "vulkan";
|
#WLR_RENDERER = "vulkan";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
".ssh/known_hosts"
|
".ssh/known_hosts"
|
||||||
]
|
]
|
||||||
++ optionals config.programs.rofi.enable [
|
++ optionals config.programs.rofi.enable [
|
||||||
".cache/rofi-3.runcache"
|
#".cache/rofi-3.runcache"
|
||||||
];
|
];
|
||||||
directories = with lib.lists;
|
directories = with lib.lists;
|
||||||
[]
|
[]
|
||||||
|
|
|
@ -19,6 +19,8 @@
|
||||||
".steam"
|
".steam"
|
||||||
# Ken follets pillars of earth
|
# Ken follets pillars of earth
|
||||||
".local/share//Daedalic Entertainment GmbH/"
|
".local/share//Daedalic Entertainment GmbH/"
|
||||||
|
# Nvidia shader cache
|
||||||
|
".cache/nvidia"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
nextcloud-client
|
nextcloud-client
|
||||||
discord
|
discord
|
||||||
|
sirula
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue