feat(greetd): add some env vars if using nvidia

This commit is contained in:
matt1432 2023-11-23 01:08:59 -05:00
parent 9f1a672f65
commit 36e9b90df6
2 changed files with 16 additions and 2 deletions

View file

@ -5,6 +5,20 @@
hyprland,
...
}: let
nvidia =
if config.hardware.nvidia.modesetting.enable
then {
env = ''
env = LIBVA_DRIVER_NAME,nvidia
env = XDG_SESSION_TYPE,wayland
env = GBM_BACKEND,nvidia-drm
env = __GLX_VENDOR_LIBRARY_NAME,nvidia
env = WLR_NO_HARDWARE_CURSORS,1
'';
}
else {
env = "";
};
regreetBin = "${lib.getExe config.programs.regreet.package}";
hyprBin = "${hyprland.packages.x86_64-linux.default}/bin";
gset = pkgs.gsettings-desktop-schemas;
@ -16,6 +30,8 @@
${builtins.readFile ./hyprland.conf}
${nvidia.env}
# FIXME: kb doesn't work
env = XDG_DATA_DIRS, ${gset}/share/gsettings-schemas/${gset.name}:${pkgs.gtk3}/share/gsettings-schemas/${pkgs.gtk3.name}:$XDG_DATA_DIRS
exec-once = squeekboard

View file

@ -32,5 +32,3 @@ decoration {
}
drop_shadow = false
}