nixos-configuration/modules/sway.nix
2023-06-22 12:03:23 +00:00

33 lines
769 B
Nix

{ config, lib, pkgs, ... }:
lib.mkIf config.jalr.gui.enable {
programs.sway = {
enable = true;
# FIXME: move to home manager
extraPackages = with pkgs; [
grim
mako
gammastep
slurp
wl-clipboard
xwayland
];
extraSessionCommands = ''
export XKB_DEFAULT_LAYOUT=de # TODO: test if we need it
export XKB_DEFAULT_VARIANT=neo # TODO: test if we need it
export QT_QPA_PLATFORM=wayland
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
export ELM_ENGINE=wayland_shm
export GDK_BACKEND=wayland
export _JAVA_AWT_WM_NONREPARENTING=1
'';
};
xdg = {
portal = {
enable = true;
extraPortals = [ pkgs.xdg-desktop-portal-wlr ];
};
icons.enable = true;
};
}