From 1bbfd212d00e92e717cf74944a752d5849abaf98 Mon Sep 17 00:00:00 2001 From: notohh Date: Tue, 7 Mar 2023 08:31:06 -0500 Subject: [PATCH] feat: force wlr to use vulkan backend --- modules/home/wayland/default.nix | 14 +++++--------- modules/home/wayland/hyprland/default.nix | 11 +++++++++++ 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/modules/home/wayland/default.nix b/modules/home/wayland/default.nix index c07a77c..186d4d2 100644 --- a/modules/home/wayland/default.nix +++ b/modules/home/wayland/default.nix @@ -35,8 +35,7 @@ let extraPortals = with pkgs; [ ]; - - }; + }; programs.xwayland.enable = true; @@ -47,21 +46,18 @@ let WLR_DRM_NO_ATOMIC = "1"; __GLX_VENDOR_LIBRARY_NAME = "nvidia"; _JAVA_AWT_WM_NONREPARENTING = "1"; - - # Will break SDDM if running X11 QT_QPA_PLATFORM = "wayland"; QT_WAYLAND_DISABLE_WINDOWDECORATION = "1"; - GDK_BACKEND = "wayland"; WLR_NO_HARDWARE_CURSORS = "1"; MOZ_ENABLE_WAYLAND = "1"; + WLR_BACKEND = "vulkan"; + WLR_RENDERER = "vulkan"; + XCURSOR_SIZE = "24"; + NIXOS_OZONE_WL = "1"; PATH = [ "$HOME/.local/bin/:$PATH" ]; - - XCURSOR_SIZE = "24"; - NIXOS_OZONE_WL = "1"; - }; services.greetd = { diff --git a/modules/home/wayland/hyprland/default.nix b/modules/home/wayland/hyprland/default.nix index ca49549..914d812 100644 --- a/modules/home/wayland/hyprland/default.nix +++ b/modules/home/wayland/hyprland/default.nix @@ -7,5 +7,16 @@ wayland.windowManager.hyprland = { enable = true; + nvidiaPatches = true; + }; + + services.wlsunset = { + enable = true; + latitude = "40.712776"; + longitude = "-74.005974"; + temperature = { + day = 6200; + night = 3750; + }; }; } \ No newline at end of file