diff --git a/modules/config/home-manager.nix b/modules/config/home-manager.nix index 4917951..e0f0faf 100644 --- a/modules/config/home-manager.nix +++ b/modules/config/home-manager.nix @@ -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 diff --git a/modules/hardware/nvidia.nix b/modules/hardware/nvidia.nix index e75edb3..c1d3490 100644 --- a/modules/hardware/nvidia.nix +++ b/modules/hardware/nvidia.nix @@ -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; diff --git a/users/common/graphical/firefox.nix b/users/common/graphical/firefox.nix index a08c25e..f9872c1 100644 --- a/users/common/graphical/firefox.nix +++ b/users/common/graphical/firefox.nix @@ -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 = { diff --git a/users/common/graphical/sway/default.nix b/users/common/graphical/sway/default.nix index 1277a19..3622902 100644 --- a/users/common/graphical/sway/default.nix +++ b/users/common/graphical/sway/default.nix @@ -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"; }; } diff --git a/users/common/impermanence.nix b/users/common/impermanence.nix index 4701e96..d805e27 100644 --- a/users/common/impermanence.nix +++ b/users/common/impermanence.nix @@ -9,7 +9,7 @@ ".ssh/known_hosts" ] ++ optionals config.programs.rofi.enable [ - ".cache/rofi-3.runcache" + #".cache/rofi-3.runcache" ]; directories = with lib.lists; [] diff --git a/users/patrick/impermanence.nix b/users/patrick/impermanence.nix index 7c7c893..16ee5cd 100644 --- a/users/patrick/impermanence.nix +++ b/users/patrick/impermanence.nix @@ -19,6 +19,8 @@ ".steam" # Ken follets pillars of earth ".local/share//Daedalic Entertainment GmbH/" + # Nvidia shader cache + ".cache/nvidia" ]; }; }; diff --git a/users/patrick/patrick.nix b/users/patrick/patrick.nix index a8e2c33..35467b9 100644 --- a/users/patrick/patrick.nix +++ b/users/patrick/patrick.nix @@ -3,6 +3,7 @@ packages = with pkgs; [ nextcloud-client discord + sirula ]; }; }