nix-config/sway/default.nix
2020-04-27 21:43:16 +02:00

30 lines
691 B
Nix

{ config, pkgs, lib, ...}:
{
home.packages = with pkgs; [
qt5.qtwayland
swaylock
swayidle
xwayland
mako
kanshi
i3blocks
termite
bemenu
xss-lock
];
wayland.windowManager.sway = {
enable = true;
config = null;
extraConfig = (builtins.readFile ./config);
extraSessionCommands = ''
export SDL_VIDEODRIVER=wayland
# needs qt5.qtwayland in systemPackages
export QT_QPA_PLATFORM=wayland
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
'';
};
}