desktop: Don't make SSH_AUTH_SOCK depend on cfg.wayland

This commit is contained in:
Erwin Boskma 2023-07-05 10:09:01 +02:00
parent a4426075ff
commit a95ddcdb32
Signed by: erwin
SSH key fingerprint: SHA256:3F6Cm6I3erRqlBwEghZWAQl6eS5WrGTX1Vs/Evec1lQ

View file

@ -75,18 +75,23 @@ in
}; };
environment = { environment = {
sessionVariables = mkIf cfg.wayland { sessionVariables = mkMerge [
_JAVA_AWT_WM_NONREPARENTING = "1"; {
MOZ_ENABLE_WAYLAND = "1"; SSH_AUTH_SOCK = ''''${XDG_RUNTIME_DIR}/keyring/ssh'';
MOZ_DBUS_REMOTE = "1"; }
QT_QPA_PLATFORM = "wayland"; (mkIf cfg.wayland
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1"; {
QT_QPA_PLATFORMTHEME = "qt5ct"; _JAVA_AWT_WM_NONREPARENTING = "1";
SDL_VIDEODRIVER = "wayland"; MOZ_ENABLE_WAYLAND = "1";
SSH_AUTH_SOCK = ''''${XDG_RUNTIME_DIR}/keyring/ssh''; MOZ_DBUS_REMOTE = "1";
AMD_VULKAN_ICD = "RADV"; QT_QPA_PLATFORM = "wayland";
NIXOS_OZONE_WL = "1"; QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
}; QT_QPA_PLATFORMTHEME = "qt5ct";
SDL_VIDEODRIVER = "wayland";
AMD_VULKAN_ICD = "RADV";
NIXOS_OZONE_WL = "1";
})
];
etc = { etc = {
"X11/xkb".source = "${pkgs.xkeyboard_config}/etc/X11/xkb"; "X11/xkb".source = "${pkgs.xkeyboard_config}/etc/X11/xkb";