hyprland: add recommended env vars
All checks were successful
Check flake / build-amd64-linux (push) Successful in 3m13s

This commit is contained in:
Jordan Holt 2025-03-16 22:38:59 +00:00
parent 1001119829
commit d1b805789b
Signed by: jordan
GPG Key ID: B8CFFF61F1CCF520

View File

@ -1,8 +1,15 @@
{ {
lib,
pkgs, pkgs,
osConfig,
... ...
}: }:
let
inherit (lib)
elem
optionals
;
in
{ {
imports = [ imports = [
./hypridle.nix ./hypridle.nix
@ -13,6 +20,22 @@
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
enable = true; enable = true;
settings = { settings = {
env =
optionals (elem "nvidia" osConfig.services.xserver.videoDrivers) [
"GBM_BACKEND,nvidia-drm"
"LIBVA_DRIVER_NAME,nvidia"
]
++ [
"_JAVA_AWT_WM_NONREPARENTING,1"
"GDK_BACKEND,wayland"
"MOZ_ENABLE_WAYLAND,1"
"NIXOS_OZONE_WL,1"
"QT_WAYLAND_DISABLE_WINDOWDECORATION,1"
"QT_QPA_PLATFORM,wayland"
"SDL_VIDEODRIVER,wayland"
"XDG_SESSION_TYPE,wayland"
];
general = { general = {
gaps_in = 5; gaps_in = 5;
gaps_out = 20; gaps_out = 20;