feat: force wlr to use vulkan backend

This commit is contained in:
notohh 2023-03-07 08:31:06 -05:00
parent 14f55b961e
commit 1bbfd212d0
Signed by: notohh
GPG key ID: BD47506D475EE86D
2 changed files with 16 additions and 9 deletions

View file

@ -35,7 +35,6 @@ let
extraPortals = with pkgs; [ extraPortals = with pkgs; [
]; ];
}; };
programs.xwayland.enable = true; programs.xwayland.enable = true;
@ -47,21 +46,18 @@ let
WLR_DRM_NO_ATOMIC = "1"; WLR_DRM_NO_ATOMIC = "1";
__GLX_VENDOR_LIBRARY_NAME = "nvidia"; __GLX_VENDOR_LIBRARY_NAME = "nvidia";
_JAVA_AWT_WM_NONREPARENTING = "1"; _JAVA_AWT_WM_NONREPARENTING = "1";
# Will break SDDM if running X11
QT_QPA_PLATFORM = "wayland"; QT_QPA_PLATFORM = "wayland";
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1"; QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
GDK_BACKEND = "wayland"; GDK_BACKEND = "wayland";
WLR_NO_HARDWARE_CURSORS = "1"; WLR_NO_HARDWARE_CURSORS = "1";
MOZ_ENABLE_WAYLAND = "1"; MOZ_ENABLE_WAYLAND = "1";
WLR_BACKEND = "vulkan";
WLR_RENDERER = "vulkan";
XCURSOR_SIZE = "24";
NIXOS_OZONE_WL = "1";
PATH = [ PATH = [
"$HOME/.local/bin/:$PATH" "$HOME/.local/bin/:$PATH"
]; ];
XCURSOR_SIZE = "24";
NIXOS_OZONE_WL = "1";
}; };
services.greetd = { services.greetd = {

View file

@ -7,5 +7,16 @@
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
enable = true; enable = true;
nvidiaPatches = true;
};
services.wlsunset = {
enable = true;
latitude = "40.712776";
longitude = "-74.005974";
temperature = {
day = 6200;
night = 3750;
};
}; };
} }