From 8a8cf9837c05b97754ff226c369144a6fbc7ec3f Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Wed, 16 Feb 2022 17:47:11 -0800 Subject: sway: install all the required packages --- hosts/common/desktop/xserver.nix | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'hosts/common') diff --git a/hosts/common/desktop/xserver.nix b/hosts/common/desktop/xserver.nix index 58f0578..ba7647c 100644 --- a/hosts/common/desktop/xserver.nix +++ b/hosts/common/desktop/xserver.nix @@ -1,10 +1,24 @@ { config, pkgs, lib, ... }: { - programs.sway = { enable = true; wrapperFeatures.gtk = true; + extraPackages = with pkgs; [ + brightnessctl + polkit_gnome + xsettingsd + swaylock + swayidle + wl-clipboard + ]; + extraSessionCommands = '' + export SDL_VIDEODRIVER=wayland + export QT_QPA_PLATFORM=wayland + export QT_WAYLAND_DISABLE_WINDOWDECORATION="1" + export _JAVA_AWT_WM_NONREPARENTING=1 + export MOZ_ENABLE_WAYLAND=1 + ''; }; services.xserver = { -- cgit 1.4.1