summary refs log tree commit diff
path: root/host/Rory-NTFS/optional/gui
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-04-15 19:33:50 +0200
committerRory& <root@rory.gay>2025-04-16 22:46:33 +0200
commit5f8a970db8b8a9f66ea8a9a9419b5b59d86a6e4d (patch)
treec255ce94093293f3c3897797f749a8270c746df4 /host/Rory-NTFS/optional/gui
parentDesktop changes (diff)
downloadRory-Open-Architecture-5f8a970db8b8a9f66ea8a9a9419b5b59d86a6e4d.tar.xz
Add NTFS box
Diffstat (limited to 'host/Rory-NTFS/optional/gui')
-rw-r--r--host/Rory-NTFS/optional/gui/wayland.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/host/Rory-NTFS/optional/gui/wayland.nix b/host/Rory-NTFS/optional/gui/wayland.nix
new file mode 100644

index 0000000..eac6391 --- /dev/null +++ b/host/Rory-NTFS/optional/gui/wayland.nix
@@ -0,0 +1,37 @@ +{ + pkgs, + ... +}: + +{ + programs.sway = { + enable = true; + + wrapperFeatures.gtk = true; + extraSessionCommands = '' + # -- Wayland fixes + # SDL: + export SDL_VIDEODRIVER=wayland + # QT (needs qt5.qtwayland in systemPackages): + export QT_QPA_PLATFORM=wayland-egl + export QT_WAYLAND_DISABLE_WINDOWDECORATION="1" + # Fix for some Java AWT applications (e.g. Android Studio), + # use this if they aren't displayed properly: + export _JAVA_AWT_WM_NONREPARENTING=1 + ''; + + extraPackages = with pkgs; [ + swaybg + #swayidle + #swaylock + waybar + wl-clipboard + grim + slurp + easyeffects + keepassxc + ]; + }; + + xdg.portal.wlr.enable = true; +}