32 lines
875 B
Nix
32 lines
875 B
Nix
{ config, lib, pkgs, ... }: {
|
|
config = lib.mkIf (config.syscfg.make.gui) {
|
|
xdg.portal = {
|
|
enable = true;
|
|
# wlr.enable = true;
|
|
extraPortals = with pkgs; [
|
|
xdg-desktop-portal-hyprland
|
|
xdg-desktop-portal-gtk
|
|
];
|
|
config.common.default = [ "hyprland" "gtk" ];
|
|
};
|
|
|
|
environment.sessionVariables = rec {
|
|
GBM_BACKEND = "amd-drm";
|
|
__GL_GSYNC_ALLOWED = "0";
|
|
__GL_VRR_ALLOWED = "1";
|
|
WLR_DRM_NO_ATOMIC = "1";
|
|
__GLX_VENDOR_LIBRARY_NAME = "amd";
|
|
_JAVA_AWT_WM_NONREPARENTING = "1";
|
|
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";
|
|
};
|
|
};
|
|
}
|